|
|
Browse by Tags
All Tags » ASP.NET » MVC (RSS)
Showing page 1 of 6 (54 total posts)
-
This past Thursday the ASP.NET MVC feature team published a new "Preview 5" release of the ASP.NET MVC framework. You can download the new release here. This "Preview 5" release works with both .NET 3.5 and the recently released .NET 3.5 SP1. It can also now be used with both Visual Studio 2008 as well as ...
-
As we’ve seen in the last post of the series, the MVC platform introduced the notion of “request associated data” by creating the TempDataDictionary which can be accessed through the Controller’s TempData property. As we’ve discussed, the data you put in that dictionary will only “survive” a single request. What this means is that the data you ...
-
In my last post,we’ve seen how the MvcRouteHandler creates an IController instance that is responsible for processing the current request. Today I’ll keep talking about the MVC platform and we’re going to step through the tipical controller lifecycle.
When you build a new controller, you end up extending the System.Web.Mvc.Controller class. ...
-
As I've said in one of my previous posts, you can have 2 controllers with the same name, but on different namespaces. The problem with this approach is that you'll only be able to get a route by specifying its name. So, if you don't want to use a name or if you can't (for instance, if you're using the HtmlHelper.ActionLink, ...
-
Yes, I’ve been asking this for some time now…in fact, this is the only thing I miss from the traditional ASP.NET Web Forms model. Those clear aspx pages, with really few <%%> crap (oopss, I mean tags) springled through out my pages – the only place I did need them was inside templates.
Notice that I’m not asking for viewstate or postback ...
-
Subscribe to Everything.
Subscribe to WMV format.
Subscribe to M4V for iPod Users.
Subscribe to MP3 (Audio only).
Download WMV.
Download M4V for iPod Users.
Download MP3 (Audio Only).
Show Notes:
Phil Haack comes on the show and gives a simple ASP.NET MVC Demo.
Source Code is below and downloadable.
Source Code:
<%@ Page ...
-
In one of my previous posts, I’ve showed how you could access the Values property of the RouteData class to get info about the current controller and action. What I forgot to mention at the time was that you should use the GetRequiredString method to get the url parameter values that must be filled when you request a specific route. That means ...
-
As we’ve seen in the previous post, all “MVC routing requests” are handled by the MvcRouteHandler class which will simply return an instance of the MvcHandler type. The MvcHandler is an IHttpHandler which is responsible for creating other classes that end up handling the current request and processing its response.
This handler doesn’t create ...
-
One of the things I needed when I started playing with ASP.NET MVC is getting info about the current Route. That’s easy when you’re on the controller, but what happens when you need that info on a module?
In these scenarios, the easiest way of achieving this is getting a reference to the current HttpContext, wrapping it up on an instance of type ...
-
As we’ve seen in the previous post, by default you’ll end up using the MvcRouteHandler class for setting up the handler that will return the HTTP response to the client. As you can see (by looking at the code), the GetHttpHandler will only return a new MvcHandler and pass it the current RequestContext. If this class is really simple, then why am ...
1 ...
|
|
|