I need to have a url that passes an additional parameter in the querystring.
ie. The default "{controller}.mvc/{action}/{id}" works in most cases but I need to add an additional querystring parameter for a couple of pages.
Do I add something to Global.asax.cs to cater for this ?
My concern is that a list page would be something like Forms.mvc/Survey
and the details page would be something like Forms.mvc/Survey/1
But for both of those pages I need to add the additional querystring parameter (TypeId).
I know I can just go old school and do the "?TypeId=..." but that seems wrong in the world of MVC. I am using MVC 1.
So my questions are - how to add the additional query string parameter using routing, and how to not get the list screen confused with the detail screen after adding the new parameter.
Is it as simple as something like:
routes.MapDomains("{controller}.mvc/{action}/{typeid}/{id}", "DomainX", new[] { "Forms" });
The problem may be that not all Forms domain pages may use this typeid..
Or should I add a routes.MapRoute before the MapDomains to catch the two "sections" that use this typeid?
Sorry if this is a really basic question - still new to MVC!! :)
Thanks!!
