Matt Payne Consulting

Avatar

Everything is possible

Articles tagged with 'mvc3'

Sick of Hard Coding Strings in Your MVC App?

This may not be news to anyone, but there's a cool utility project out there for MVC that allows you to avoid hard coding strings in your app.

For example, how many times have you written something like:

public ActionResult DoSomething()
{
 //Do some work
 return RedirectToAction("Home");
}

All the time, right? It's a pretty common approach. But wouldn't it be nice if you didn't ...

Customizing Forms Authentication in ASP.Net MVC 3

I'm in the process of building out the core functionality of ColorMatchR. One of the main ingredients is that users can log in, of course.

The obvious choice to support this requirement is Forms Authentication. This allows me to use all of the build-in security related features of ASP.NET, like the [Authorize] attribute.

Normally, this would be straightforward. In fact, the default MVC project comes with ...