LoadEvent of Master file

  • Thread starter Thread starter Samuel
  • Start date Start date
S

Samuel

How can I get in the Load Event of the master file the name of the page that
the user requested?

Thank you,
Samuel
 
Assuming you're talking about the filename, try:
System.IO.Path.GetFileName(Request.ServerVariables("URL"))

note, however, that it won't be a perfect solution if you're using
Server.Transfer


David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
 

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