I would like the asp.net app runtime to recognize the ‘U9EO’ code as a query string input (or other type of input if necessary) not a a folder:
website.com/U9EO
I know that there is a way to do this in the IIS 7 server, however, is there a method at the asp.net stack level?
The problem with routing is that the following won’t work:
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("",
"{U9EO}",
"~/Page.aspx?Code=U9EO"
);
}
The query string is simply lost.
url routing:
http://msdn.microsoft.com/en-us/library/cc668201.aspx