add fa icon on ajax link button

Total Post:10

Points:70
 543  View(s)
Ratings:
Rate this:

 how to add fa icon on ajax link button 

 @Ajax.ActionLink(linkText:"Save", actionName: "Add", controllerName: "Home", ajaxOptions: new AjaxOptions { OnSuccess = "onSuccess", InsertionMode = InsertionMode.Replace,  HttpMethod = "GET" }, htmlAttributes: new { @class = "theme_button color1 " })</text>)

thanks in advance

  1. Post:9

    Points:63
    Re: add fa icon on ajax link button

    I think your all code is correct only you need to add fa icon class

       @Ajax.ActionLink(linkText:"Save", actionName: "Add", controllerName: "Home", ajaxOptions: new AjaxOptions { OnSuccess = "onSuccess", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" }, htmlAttributes: new { @class = "fas fa-plus theme_button color1 " })</text>)

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!