resolving a URL from Global.asax

  • Thread starter Thread starter PJ6
  • Start date Start date
P

PJ6

The Page class has a nice little function called ResolveURL. Can I get to
something like that in global.asax, ar at least the originating page within
any particular event?

Paul
 
You could try something like this, which will give you the page path:

Sub Application_BeginRequest(ByVal sender As Object, ByVal e As
EventArgs)
' Fires at the beginning of each request

HttpContext.Current.Response.Write(HttpContext.Current.Request.Path())
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top