dotnetcorner.ch blog

Glimpse - Debugging made easy0

20 March 2014
Christoph Keller Christoph Keller

Glimpse shows execution timings, server configuration, request data and more, all in browser, with no changes to your application code. Just install the NuGet package, and you're good to go!


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.