Posted on: 7/6/2013 5:05:47 AM | Views : 260

hello,
i am trying to achieve clean urls in my web application but have not been able to find a solution using the routing techniques discussed in this msdn link:
http://msdn.microsoft.com/en-us/library/cc668177(v=vs.100).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
i would like all the edits to be in the Global.asax.vb file.  when i use the following code, the url remains in its long form, unchanged.
Global.asax.vb:
Imports System.Web.Routing Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) RegisterRoutes(RouteTable.Routes) End Sub Shared Sub RegisterRoutes(ByVal routes As RouteCollection) routes.MapPageRoute("Contact", "Products/Contact", "~/Products/ContactEntry.aspx") End Sub this code runs with no errors, ...

Go to the complete details ...