Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
131 Points
108 Posts
Mar 26, 2012 10:22 AM|LINK
how to configure MapRoute so that on default page I shouldn't need to write full action path to use parameter? for example currently I can use
http://localhost:1035/Home/Index/test
(test is the optional parameter value of string type)
but
http://localhost:1035/test
gives me an error. I understand that somehow I could fix it with a new MapRoute for default controller. but how could this route look like?
thanks.
kvh
Member
131 Points
108 Posts
MapRoute with default parameter
Mar 26, 2012 10:22 AM|LINK
how to configure MapRoute so that on default page I shouldn't need to write full action path to use parameter? for example currently I can use
http://localhost:1035/Home/Index/test
(test is the optional parameter value of string type)
but
http://localhost:1035/test
gives me an error. I understand that somehow I could fix it with a new MapRoute for default controller. but how could this route look like?
thanks.