Tag Archives: ASP.NET

On Dynamic Actions in ASP.NET MVC

I’ve always been bothered by writing code like: public class HomeController : Controller { public ActionResult Index() { return View(); } public ActionResult About() { return View(); } public ActionResult Terms() { return View(); } public ActionResult Privacy() { return … Continue reading

Tagged , , | Leave a comment

On Preserving State after Validation Failures in ASP.NET MVC

For those ASP.NET developers migrating from WebForms to MVC (or MonoRail), one of the first hurdles to overcome is the absence of ViewState. This hurdle is perhaps highest when working with a form that will represent itself after failed validation. … Continue reading

Tagged , | 1 Comment