473,379 Members | 1,260 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,379 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 3090
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.