Asp.Net Mvc Utilities and Helpers

I am really new to ASP.Net Mvc, but not new to Asp.Net. I knew the whole HtmlHelper class, but I had problems with problems using Html.ActionLink. I asked a question here and immediately received an answer about using the UrlHelper class, which I did not even suspect.

My question is: are there other classes like these that I should know about?

+4
source share
3 answers

My best advice would be to quickly scan through classes into ASP.NET MVC beta source code . Reading the source of the library is by far the best way to become an expert in using it.

+1
source

You can find the source code for ASP.NET MVC at www.codeplex.com/aspnet . Go to the "Source" tab, select the release and go through the MVC tree to find all the quality factors of MVC. Browse the Controller and View code to find the properties available to you from the underlying objects.

+1
source
  • CodePlex has MVCContrib .

  • My question is similar to yours but about ActionResults (didn't get many answers!)

  • Not an MVC helper, but I just found SmartEnumerable today from JonSkeet 's MiscUtils. It is definitely very useful when creating data using the <% %> %% <% %> sign, because you can iterate through the collection and insert special logic depending on whether the current element is the first or last.

Jon example :

 foreach (SmartEnumerable<string>.Entry entry in new SmartEnumerable<string>(list)) { Console.WriteLine ("{0,-7} {1} ({2}) {3}", entry.IsLast ? "Last ->" : "", entry.Value, entry.Index, entry.IsFirst ? "<- First" : ""); } 

ASP.NET MVC

class="<% if (item.IsLast) ? "bulletpoint last" : "bulletpoint" %>"

+1
source

All Articles