Click here to Skip to main content
15,897,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have tried the following below using
HTML
@class = "btn btn-primary"


HTML
@Html.ActionLink("Create", "Create", new { @class = "btn btn-primary" })


Can anyone help?
Posted

Hello,
Using Inline styles might not be a better option. As incase you might want to use same styling for many Action links, sofor each giving inline styles is not recommended.
It is better use a simple Class as @class = "btnCssForActionLinks"
Then in your common css add the style and use the same in every Actionlinks.

I hope this helps ..
:)
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900