Archives
-
DropDownList from enum in Asp.Net MVC
I found an excellent article that explain how to play with enum in a form. Stuart Leeks explains how to create an extension method to render enumeration as dropdownlist. I’m not going to re-explain all. Just share the article with you : ASP.NET MVC – Creating a DropDownList helper for enums Edit (20/09/2011) : If [...]
Sep 19th, 2011 | Filed under ASP.Net MVC -
Asp.Net MVC, Login and ReturnUrl
If you use AuthorizeAttribute in your controller, you surely encountered this kind of “issue”. Imagine, you try to create a blog application and on your Home, you let a “Add new article” link. As you want to protect your blog, you add an Authorize attribute on your Create method in the controller like this : [...]
Sep 19th, 2011 | Filed under ASP.Net MVC