dotnetcorner.ch blog

ASP.NET MVC: Route order is really important0

25 January 2011
Christoph Keller Christoph Keller

If you have multiple MVC Routes, check carefully the route order! If a less specific rule comes first, it will be threated first.


ASP.NET MVC: Use Html.ActionLink and add route values / HTML attributes to it0

11 January 2011
Christoph Keller Christoph Keller

If you render a Link to another Controller / View, you can just use the method 'Html.ActionLink' on a view. If you want to submit additional parameters / action parameters in the link, you can use the overloads of 'Html.ActionLink'.

 ASP.NET  MVC  Render 

ASP.NET MVC: Render a Partial View in a MasterPage or another view0

11 January 2011
Christoph Keller Christoph Keller

Usualy a MVC Page is rendered using a Controller which loads a Model and supplies the data to the configured View which displays the data.


ASP.NET MVC: Display List data in a view0

11 January 2011
Christoph Keller Christoph Keller

If you want to display a IEnumerable<x> List in a View, you cannot use standard ASP.NET WebForms Controls like a ListView to iterate over a list. The reason here is mostly because of the fact that MVC 2 does not implement the Form-ViewState.


Taxonomy / Managed Metadata Service: Get Taxonomy Termsets by Code0

03 January 2011
Christoph Keller Christoph Keller

Here is a small snippet to get a TermSet out of the Managed Metadata Service from SharePoint 2010