convert ajax actionlink as a bootstrap button

asp.net-mvc, twitter-bootstrap

Solution

You should be able to use the htmlAttributes parameter to add whatever Bootstrap class you want:

@Ajax.ActionLink("EMPLOYEE", "_PartialEmployeeIndex", "Employee", new AjaxOptions() { UpdateTargetId = "divToUpdate" }, new { @class = "btn" })

Problem

i have an ajax actionlink like this: ``` <div style="float:left"> @Ajax.ActionLink("EMPLOYEE", "_PartialEmployeeIndex", "Employee", new AjaxOptions() { UpdateTargetId = "divToUpdate" }) </div> ``` i usually use bootstrap to style my buttons like this: ``` <input class="btn btn-info" type="button" value="Input"> ``` or like this ``` <button class="btn btn-success" type="submit"> </button> ``` so how can i convert an ajax action link to a bootstrap button? i dont want to put a class name to the div containing the ajax actionlink because the button is displayed with black color font and with an underline... i want it to be displayed as an actual button with no underline and with white font

Original source