Home > DeveloperSection > Forums > How to modify URL to strip out the pathname and set it to the address bar?
jayprakash sharma
jayprakash sharma

Total Post:117

Points:821
Posted on    February-05-2015 10:42 PM

 JavaScript C#  ASP.Net 
Ratings:


 1 Reply(s)
 866  View(s)
Rate this:
How to modify URL to strip out the pathname and set it to the address bar


Pravesh Singh
Pravesh Singh

Total Post:101

Points:709
Posted on    February-05-2015 10:56 PM

You need to register routing in the global.asax file as per below:

Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)

    RegisterRoutes(Routing.RouteTable.Routes)

End Sub

 

Public Shared Sub RegisterRoutes(ByVal routeCollection As Routing.RouteCollection)

    routeCollection.MapPageRoute("DefPage", "", "~/common/webpage/default.aspx")


Modified On Apr-12-2016 12:13:48 AM

Don't want to miss updates? Please click the below button!

Follow MindStick