Click here to Skip to main content
15,889,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to rewrite the url with query string. here is the example

e.g

www.test.com/user.aspx?Name=1234

i want to rewrite like

www.test.com/1234

it is working fine with www.test.com?Name=1234 to www.test.com/test/1234

i am doing like ..

C#
void Application_Start(object sender, EventArgs e)
    {
        // Code that runs on application startup
        RouteTable.Routes.MapPageRoute("StoreRoute",
        "{Name}",
        "~/Webpages/Test/Demo.aspx");

    }

Thanx in Advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900