You can do this at a simple level in the Global.asax file as follows:
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
' Fires at the beginning of each request
Dim path As String = HttpContext.Current.Request.Path
If path.ToLower.EndsWith(".aspx") Then
path = path.Substring(0, path.Length - 5)
Response.Redirect(path, True)
Else
path += ".aspx"
Context.RewritePath(path)
End If
End Sub
, , .png , .