Abstract URL and Routing

desdinova

New Member
I have the following URL and I would like to hide the query string as follow:from this:\[code\]/main?a=3&date_in=20/03/2013&date_out=20/03/2013\[/code\]to this:\[code\]/main?cars/from/2013/01/27/to/2013/02/26\[/code\]where 3 means cars for example\[code\]date_in = from and then the date always on that formatand date_out = to and then the date always on that format.\[/code\]I have created the following on global.asax:\[code\]routes.MapPageRoute("main", "main/{*queryvalues}", "~/default.aspx");\[/code\]Any ideas on how could I do that?
 
Back
Top