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)
 
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
 
Back
Top