First Create a website . And in Global.ascx file . Register the URL.
When i say register the url . I mean to say define the redirection path:
IN Global.asax file add
RouteTable.Routes.MapPageRoute("HomeRoute", "Home", "~/About.aspx");
RouteTable.Routes.MapPageRoute("AboutUS", "About", "~/Contact.aspx");
The reason i am gonna add this in applicaion_start event . Bcz i want to access this when application events are getting register.
And Press launch the Application and manipulate the urls :
http://localhost:60062/About
http://localhost:60062/Home
Project is added along with this.
When i say register the url . I mean to say define the redirection path:
IN Global.asax file add
RouteTable.Routes.MapPageRoute("HomeRoute", "Home", "~/About.aspx");
RouteTable.Routes.MapPageRoute("AboutUS", "About", "~/Contact.aspx");
The reason i am gonna add this in applicaion_start event . Bcz i want to access this when application events are getting register.
And Press launch the Application and manipulate the urls :
http://localhost:60062/About
http://localhost:60062/Home
Project is added along with this.
ConversionConversion EmoticonEmoticon