Geeks With Blogs
Etienne Giust's .NET notes Some .NET tips and tricks for me to remember. That might help you too May 2012 Entries
filterContext.RouteData.Values null ?
I’m using ASP.NET MVC 3. I was used to rely on filterContext.RouteData.Values to get parameters from the url var idEdited = filterContext.RouteData.Val... This works fine as long as the url does not have specific parameters, like here: However, when the parameter is not a routevalue anymore, like in the example below, then you would get a OfficeId= null when using the previous method : ......

Posted On Thursday, May 3, 2012 2:08 AM

Copyright © Etienne Giust | Powered by: