add fa icon on ajax link button

Total Post:10

Points:70

 889  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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.