Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
thanks in advance.


Actual Path:-http://localhost:2334/Info/Help.aspx
I want URL result like this after added Dummy Directory
Virtual Path:-http://localhost:2334/Info/Dummy/Help.aspx

i am tried with this code,both code run successfully,but not reflect any result or changes.

1.
C#
  void RegisterRoutes(RouteCollection routes)
        {
            routes.Clear();
           routes.MapPageRoute("Dummy/Help", "Dummy/Help", "~/Info/Help.aspx", true);
          
           
        }
        void Application_Start(object sender, EventArgs e)
        {
            RegisterRoutes(RouteTable.Routes);
}


2.
C#
<system.web>
    <urlMappings enabled="true">
      <add url="~/Info/Dummy/Help.aspx" mappedUrl="~/Info/Help.aspx" />

    </urlMappings>
<system.web>
Posted
Updated 6-Dec-14 3:37am
v2

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