add fa icon on ajax link button

Posted by  Darshit Khatri
 1002  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. 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