Name of calling page?

  • Thread starter Thread starter Jim Mitchell
  • Start date Start date
J

Jim Mitchell

Can I get the name of the page that called the the current page using the
sender object in the page_load event? I could not find the properties for
the sender object as shown below.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Dim key As Integer

Dim temp As Integer

txtSender.Text = sender.id
 
the sender is actually the same object as this (me in vb), as the page fires
its on events.


-- bruce (sqlwork.com)
 
Hi

Use the Request.UrlReferrer instead. tht should solve ur
problem

hth

regards,
sr
 
In this case sender becomes an instance of System.Object wich has no exposed
properties, let alone an id. The System.Object.ToString() method may provide
a clue to sender's identity...
 
oops... forgot the code i used to capture 'ASP.SystemObject_aspx':

Sub Page_Load(sender As Object, e As EventArgs)
txtOut.Text = sender.ToString()
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