473,402 Members | 2,055 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,402 software developers and data experts.

Know the object does the postback

Hi,

Is there any way that I can know the object that does
fires or does postback to the page on the Page_Load event.

I tried to use the sender object that is defined as
parameter into this event.

Thanks for any help provied.

Cheers...
Nov 18 '05 #1
2 1122
There's not a great way.
Generally the best solution is to simply move your Page_Load code to the
PreRender event , which happens after
all the control events. So by then the control that caused the postback
should have its event handled and you can set a flag or something to let you
know which one caused it.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"Erick" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
Hi,

Is there any way that I can know the object that does
fires or does postback to the page on the Page_Load event.

I tried to use the sender object that is defined as
parameter into this event.

Thanks for any help provied.

Cheers...

Nov 18 '05 #2
Thanks Steve, I really apreciate you answer

Will try with this event..

Regards...
-----Original Message-----
There's not a great way.
Generally the best solution is to simply move your Page_Load code to thePreRender event , which happens after
all the control events. So by then the control that caused the postbackshould have its event handled and you can set a flag or something to let youknow which one caused it.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able- consulting.com

"Erick" <an*******@discussions.microsoft.com> wrote in messagenews:06****************************@phx.gbl...
Hi,

Is there any way that I can know the object that does
fires or does postback to the page on the Page_Load event.
I tried to use the sender object that is defined as
parameter into this event.

Thanks for any help provied.

Cheers...

.

Nov 18 '05 #3

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

Similar topics

3
by: darrel | last post by:
I have a page that checks to see if it's a postback on page_load. I want it to do one of two different things depending on which object triggered the postback. Is there a way to check to see which...
4
by: blackhawk | last post by:
I need to build a web page that has to potentially display a large amount of data in two grids on the same page. The HTML file with all of the formatting is about 7MB in size. This is too large...
4
by: Marty U. | last post by:
How can you declare an object that is global to a page even on postbacks? I currently have something like this MyObject m; throughout the page on the initial load everything works fine but...
13
by: Max | last post by:
Hi There! I'm having a mysterious error right after I login using Forms Authentication in my ASP.NET app. Below is the error... Exception Details: System.NullReferenceException: Object...
12
by: Rudy | last post by:
Hi, I need to make a request to a asp.net page using HttpWebRequest class and I need to trick this page into thinking it's a postback and a button was clicked. But the page doesn't handle the...
12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
6
by: David Whitchurch-Bennett | last post by:
Hi There, I have created a very simple web user control, containing only a combo box. I have created a class which contains some private object variables, for example... Private _anObject as...
7
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, does server-side page_load what button was pressed on a postback? thanks, rodchar
3
by: lander | last post by:
How does asp.net know to set the Page.IsPostBack property exactly??? Would somebody detail this, thanks very much...
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: 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
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...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.