Search results

Customize input and anchor elements in ASP.NET MVC Button control

03 Mar 2021 / 1 minute to read

You can customize the appearance of the input and anchor elements using predefined styles through the class property. In the following code snippet, the input element is customized as a link Button by setting the e-btn e-link class, and the anchor element is customized as a primary Button by setting the e-btn e-primary class.

razor
Copied to clipboard
<div>
    <input type="button" id="inputbtn" value="Input Button" class="e-btn e-link">
</div><br>
<div>
    <a id="anchorbtn" class="e-btn e-primary" href="#">Google</a>
</div>