Hello all,
Below is my action link how shall i apply css to the following ,actually i want to give the class as we do in asp.net simple application.please tell me what shall I do
<%=Html.ActionLink("Forgot password?", "ForgotPassword")%>
Thanks ritz
Hello all,
Below is my action link how shall i apply css to the following ,actually i want to give the class as we do in asp.net simple application.please tell me what shall I do
<%=Html.ActionLink("Forgot password?", "ForgotPassword")%>
Thanks ritz
You supply HTML attributes as anonymous objects:
<%=Html.ActionLink("Forgot password?", "ForgotPassword", new{ @class="MyCSSClass" })%>
You should use:
<%=Html.ActionLink("Forgot password?", "ForgotPassword", new{ @class="classname" }) %>
I'm not a .net developer, but replace your ActionLink code with this:
<%=Html.ActionLink("Forgot password?", "ForgotPassword", new { @class="my_class" })%>
And add this to your CSS:
.my_class {
color: #fff;
}