How to use Free CSS Templates with ASP.NET MVC 3
Uploader Comments (dmchitnis)
Top Comments
-
Very good tutorial, I'm sure the MVC community will appreciate it.
For the advanced users though, I would recommend putting the template in Content but not creating layout.cshtml in the same folder, instead leave it on Shared as it is. Just change the content of Layout.cshtml to the content in index.html and make the appropriate changes in the HTML code to point to the CSS and images.
This because it would kill the spirit of MVC to put it in the Content folder rather than leaving it at View.
-
You don't need to copy that line in your _Layout.cshtml file, just move the file to ~/Views/Shared/ folder and modify path to it in _ViewStart.cshtml (If you wish to keep original _Layout.cshtml file, just put the new one in some folder or rename it).
All Comments (21)
-
Thanq for the tutorial...You Explained how to change the css when using Razor,Can you tell me how to do it with .ASPX page...
-
Greate tutorial, thank You, But I still have problem with ActionLink, and i cant create button. :(
-
Thanks, really helped me
-
@menyarito1 Did anybody ever answer you on this question? I have the same issue.. :(
-
Very good video Thanks
-
NIce I liked this idea and I am going to try this Thanks so much
-
- Loading comment...
ASP.NET MVC 3 Beta now has support for VB. There are vbhtml counterparts for every cshtml files, so this should be really easy now.
dmchitnis 1 year ago