Firstly, it is not only MVC, WebForms.
I use routing to keep my site backward compatible for our clients while my project is organized.
I am also thinking of porting our encrypted query string to a friendlier URL. How it works, our customers need to bookmark a huge encrypted URL so that they do not guess our other customers by changing the identifier.
But instead of having this huge URL, you wanted to add a route, such as LoginClientName.aspx for each client, and have an encrypted request string hardcoded or possibly in the database.
But I see no way to add a query to MapPageRoute ..
Thought of something like that (I know that it does not work)
routes.MapPageRoute ("MapClient1", "LoginClient1.aspx", "Login.aspx? secure = mylongquerystring");
routes.MapPageRoute ("MapClient2", "LoginClient2.aspx", "Login.aspx? secure = differentmylongquerystring");
Now this throws an exception, since it doesn't allow it? in url .. any ideas how to do this? or is it impossible?
jaekie
source share