473,396 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Name of calling page?

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
Jul 19 '05 #1
4 3092
the sender is actually the same object as this (me in vb), as the page fires
its on events.
-- bruce (sqlwork.com)


"Jim Mitchell" <ji**********@mindspring.com> wrote in message
news:uP**************@TK2MSFTNGP12.phx.gbl...
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

Jul 19 '05 #2
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...

"Jim Mitchell" <ji**********@mindspring.com> wrote in message
news:uP**************@TK2MSFTNGP12.phx.gbl...
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

Jul 19 '05 #3
p.s. ASP.SystemObject_aspx is the sender on page load....

"peruser" <ja*******@hotmail.com> wrote in message
news:Ot**************@TK2MSFTNGP11.phx.gbl...
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...

"Jim Mitchell" <ji**********@mindspring.com> wrote in message
news:uP**************@TK2MSFTNGP12.phx.gbl...
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


Jul 19 '05 #4
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

"peruser" <ja*******@hotmail.com> wrote in message
news:eE**************@tk2msftngp13.phx.gbl...
p.s. ASP.SystemObject_aspx is the sender on page load....

"peruser" <ja*******@hotmail.com> wrote in message
news:Ot**************@TK2MSFTNGP11.phx.gbl...
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...

"Jim Mitchell" <ji**********@mindspring.com> wrote in message
news:uP**************@TK2MSFTNGP12.phx.gbl...
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



Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: CJ | last post by:
Why won't this work? I am passing the name of the form (I have two that use this validation script) but I keep getting an error. Error reads: "document.which_form.name is null or not an object" ...
1
by: Stefan Barlow | last post by:
I have a mechanism that performs a server transfer to another page that uses the same codebehind class if an alternate page URL exists in the application variables. My problem is there is an...
2
by: Giovane Calabrese | last post by:
( aspx + vb ) hi everyone ! I really need make that function work ! im brazilian , and i want to make a multilanguage system , that function above must look at all ASPX take the labels ID and...
0
by: Giovane Calabrese | last post by:
ok. im try to make a multilanguage system based on that tutorial : http://www.123aspx.com/redir.aspx?res=29112 in my aspx pages all text are in labels , and i want to take the name labels...
5
by: mg | last post by:
Is there a simple way to determine the name & path of the Web page that calls a WebForm when the calling page is another type such as an html, jsp, or .do file.
4
by: Manuel Lopez | last post by:
Hello, I need to know on evry request the page name, my problem is when use the method server.transfer, i always get the name of the calling page. I use context.Current.Request.Url, but I am...
1
by: JezB | last post by:
Within some library class, is there a way I can I determine which webpage called it, without having to pass in the calling Page object ? I only need the page name rather than the Page object. ...
3
by: Don | last post by:
I'm using FROMS authentication and want to automate the login. Right now I force the user to manually log in. I would like to detect the users network userName and if they have an account I will...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
3
by: Tod Birdsall | last post by:
Hi, My boss has asked me to create a tool that can give us a list of stored procedure names that are being called from each of our app's web pages. This is an ASP.NET application that is rather...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.