resolving a URL from Global.asax

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
 
S

ScottStoecker

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

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top