asp.net mvc 2 - MVC2 Slash char in url -
i want use encrypted strings in mvc2 urls. typical url in app looks this:
http://localhost:29558/account/passwordreset/zkgedmzikfisno8/mes7scbli+mzo1je8lm5dteect3u91arpucavt5uxfvvrfye
note after passwordreset/ encrypted string. in example encrypted string contains slash, , causing mvc crash.
i've tried adding maproute in global.asax.cs follows:
routes.maproute( "passwordresetspecialcase", // route name "account/passwordreset/*", // url parameters new { controller = "account", action = "passwordreset" } // parameter defaults );
but mvc2 still falling on because encrypted string contains slash char. if remove slash works, that's no good. how mvc2 regard after passwordreset pure data? thanks.
your maproute contains error. replace *
{*nameofparameter}
Comments
Post a Comment