Skip to content

{ Tag Archives } asp.net mvc

ASP.NET MVC TempData Is Really RedirectData

Update: This post was written for MVC 1. TempData behaves completely differently in MVC 2 Beta and higher. In these versions, TempData is cleared only when it is read (or when the session expires).
Many people seem to be confused about the TempData feature in ASP.NET MVC. TempData behaves like the ViewData dictionary, except that it [...]

Also tagged

Lightweight Frameworks, Again

A couple weeks ago, I wrote a post noting that I liked the lightweight nature of the Ruby web framework Merb. Today comes the news that Merb and Rails will be merging in Rails 3. People who see Merb as the "anti-Rails" seem to find this surprising. But people who see Merb as "Rails done [...]

Also tagged , , , ,

Lightweight Frameworks

Big frameworks with strong coupling are prisons. Once you go into them, you’re stuck, and it can be incredibly difficult to get out.

Also tagged , , ,

Generics: Not Just for Lists

It appears that the next version of Delphi, code-named Tiburón, will include support for generic types in the Win32 compiler. Developers without .NET experience may not be familiar with use cases for generics. Of course, generics work really well for typed containers, and this is often the first example that people give as a use case. But they have many other uses as well. I’ll give a few examples; I hope this will help Delphi developers think about how they might want to use the feature in their own code.

Also tagged

Alternate View Folders in ASP.NET MVC

Stephen Walther recently posted a tip on how to load an ASP.NET MVC View from a folder other than Views\{controller}\ or Shared. He notes that it’s possible to hardcode the path to a View in your Controller action.  He also states that you should not do this:
Now, I want to be the first to warn [...]

Also tagged

Moq and MvcMockHelpers

I’m working on some unit tests for an ASP.NET MVC application I’m developing.  One of the tests ensures that if I construct a URL using Html.ActionLink that the URL which is returned, when fed into the routing system, becomes a correct representation of the route data used to build the URL originally.  I’ll discuss this [...]

Also tagged , ,

ASP.NET MVC Membership

One of my disappointments with Ruby on Rails is that it provides no support whatsoever for site logins/membership, which I consider to be a fundamental part of many database-driven websites. Of course, the Rails community has responded — and responded, and responded, and responded — to this need. The Rails wiki notes that there [...]

Also tagged

Updating an ASP.NET MVC App to Preview 2

There’s a whole lot of ground not covered in the official update instructions.
The MVC Web UI helpers are now in the framework. But they’ve changed quite a bit. So you must:

Remove the assembly from your project.
UpdateFrom is no longer an extension method. It’s now a static method in System.Web.Mvc.BindingHelperExtensions. So you have to change anywhere [...]

Also tagged

Bad Behavior has blocked 713 access attempts in the last 7 days.

Close