Tag Archives: asp.net mvc

Html.EditorFor, Model Property vs RouteData Value

By | May 13, 2012

The ASP.NET MVC team made our lives easier when they created the Html editor extension method Html.EditoFor(); you just pass the model property and it creates the right editor, filling it with the property’s value…but not always! Let’s consider that we have the conventional route definition: routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with… Read More »

How Html.Action() Work

By | March 23, 2012

Let’s take the example: @Html.Action("Latest", "Episode") What this will do is to invoke the “Latest” action method in the “Episode” controller. But what really happens behind the scenes is NOT a direct invoke; it will actually start from the beginning of the ASP.NET MVC execution pipeline using “Latest” and “Episode” as Route values for the… Read More »

QueryString in Routing and Model Binding in ASP.NET MVC

By | January 15, 2012

In a nutshell, a query string will not be part of the RouteData dictionary in the routing process, yet it will affect the route matching. On the other hand when Model Binding takes place, query string will be used to bind to the parameters of the action method, unless there is an item in route… Read More »

Reflections on Jordev Web Camp

By | May 17, 2011

Last Saturday 14th of May 2011 we had the first web camp in Jordan among Jordev’s activities, and it was great! check my presentation slides at the end of this post. The event was like the following: 8:30 AM – 9:00 AM: Registration 9:00 AM – 1:00 PM: Four 50 minutes sessions with 10 minutes… Read More »