Cheat sheet (a concise set of notes) serve as reference tool having simple, brief instructions that offers fast help. If you are a developer working with different programming languages or different versions of languages then you know the logic but might face problem of syntax because of language overflow or out of practice. In this case Cheat sheet works as memory refreshing and productive tool.

Being a .NET developer, I have created online ASP.NET MVC 4 cheat-sheet. Click below to view it:

cheatsheet mvc asp net Introducing Online ASP.NET MVC 4 Cheat Sheet

It has a set of notes having different colors. I covered Basic application folder structure, Different HTML Helpers, Attributes, Data Annotations for Model, View related properties and methods, Action methods..etc. For some topics, I have added more details, you can get it on “more” link.

I didn’t add ASP.NET Web API in this sheet.

Hope, It helps. All suggestions are welcome to improve this cheat-sheet and Don’t forget to share if you like.

Comments:  7

  • http://www.facebook.com/profile.php?id=509111131 Mandeep Singh Bhangu

    Hi Brij, what’s the namespace for Url Validation attribute? I could not find it in mvc4 anywhere, it seems to be part of annotationextension package form nuget

  • John Davidson

    You could also add DisplayTemplates folder under Views/Shared

  • http://www.techbrij.com Brij Mohan
  • http://www.facebook.com/profile.php?id=509111131 Mandeep Singh Bhangu

    Hi Brij, not yet. So it’s a part of System lib in .net 4.5, and not actual MVC dll’s. On other note, all the data annotations are part of .net 4 framework, and can work with web forms etc as well.

  • http://www.techbrij.com Brij Mohan

    Yes.. I tried to cover all basic topics used in MVC 4.

  • Arthur Serbin III

    This is great, thanks! In ‘App Folders’ you could also add these very common conventions: App_Data (specially by nuget packages), Helpers (extension methods and helper classes), and ViewModels (safe binding)

  • http://www.facebook.com/profile.php?id=509111131 Mandeep Singh Bhangu

    Great, though mvc 4.0 works with .net 4.0 as well, so Url Validation attribute won;t work for few people out there..

    you can add it as a note in your article, that some features only work with .net 4.5

    thanks for the sheet, great work!!