472,950 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Hooking Post Back Event

Hi all,

is it posible to hook every post back event ?

My goal is I want to know which control send post back event to my page
before Page.OnLoad event raised. Or at least in Page_Load event handler i
can find out which control raise it.

Thank's
Nov 17 '05 #1
7 1438
If IsPostBack Then...

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Yovi Oktofianus" <yo***@hotmail.com> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
Hi all,

is it posible to hook every post back event ?

My goal is I want to know which control send post back event to my page
before Page.OnLoad event raised. Or at least in Page_Load event handler i
can find out which control raise it.

Thank's

Nov 17 '05 #2
Yup, but, I cannot find out which control send post back event, with the
method you suggest me I can only find out is page load event a Post Back
Event or not.

How can we know the control who send it (postback event) ?

Thank's & Regards

Yovi

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:#m**************@TK2MSFTNGP11.phx.gbl...
If IsPostBack Then...

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Yovi Oktofianus" <yo***@hotmail.com> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
Hi all,

is it posible to hook every post back event ?

My goal is I want to know which control send post back event to my page
before Page.OnLoad event raised. Or at least in Page_Load event handler i can find out which control raise it.

Thank's


Nov 17 '05 #3
"Yovi Oktofianus" <yo***@hotmail.com> wrote in message
news:u5**************@TK2MSFTNGP10.phx.gbl...
Yup, but, I cannot find out which control send post back event, with the
method you suggest me I can only find out is page load event a Post Back
Event or not.

How can we know the control who send it (postback event) ?


It's usually a bad idea to try to figure out which control caused the
PostBack.

Usually, people just handle the various Click or SelectedIndexChanged
events.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #4
Request.Form["__EVENTTARGET"] will give the UniqueID of the control that
caused the postback to fire. As this is an implementation detail of
ASP.NET and is subject to change in future, it is usually a bad idea to
play around with it. I would also like to point out that the UniqueID of
a control can be different than the ID that you gave to the control.

HTH,

Jalil Vaidya

Yovi Oktofianus wrote:
Hi all,

is it posible to hook every post back event ?

My goal is I want to know which control send post back event to my page
before Page.OnLoad event raised. Or at least in Page_Load event handler i
can find out which control raise it.

Thank's


Nov 17 '05 #5
Yup, but, I cannot find out which control send post back event, with the
method you suggest me I can only find out is page load event a Post Back
Event or not.

How can we know the control who send it (postback event) ?

Thank's & Regards

Yovi

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:#m**************@TK2MSFTNGP11.phx.gbl...
If IsPostBack Then...

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Yovi Oktofianus" <yo***@hotmail.com> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
Hi all,

is it posible to hook every post back event ?

My goal is I want to know which control send post back event to my page
before Page.OnLoad event raised. Or at least in Page_Load event handler i can find out which control raise it.

Thank's


Nov 17 '05 #6
"Yovi Oktofianus" <yo***@hotmail.com> wrote in message
news:u5**************@TK2MSFTNGP10.phx.gbl...
Yup, but, I cannot find out which control send post back event, with the
method you suggest me I can only find out is page load event a Post Back
Event or not.

How can we know the control who send it (postback event) ?


It's usually a bad idea to try to figure out which control caused the
PostBack.

Usually, people just handle the various Click or SelectedIndexChanged
events.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #7
Request.Form["__EVENTTARGET"] will give the UniqueID of the control that
caused the postback to fire. As this is an implementation detail of
ASP.NET and is subject to change in future, it is usually a bad idea to
play around with it. I would also like to point out that the UniqueID of
a control can be different than the ID that you gave to the control.

HTH,

Jalil Vaidya

Yovi Oktofianus wrote:
Hi all,

is it posible to hook every post back event ?

My goal is I want to know which control send post back event to my page
before Page.OnLoad event raised. Or at least in Page_Load event handler i
can find out which control raise it.

Thank's


Nov 17 '05 #8

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

Similar topics

79
by: pinkfloydhomer | last post by:
I want to scan a file byte for byte for occurences of the the four byte pattern 0x00000100. I've tried with this: # start import sys numChars = 0 startCode = 0 count = 0
3
by: Rick Strahl [MVP] | last post by:
I'm working on an app that's using the WebBrowser control. I got the control working fine, hooking to the document object. But I've run into a major issue with hooking the Document events....
0
by: Carl Clawson | last post by:
The C++ compiler is choking on what looks like a valid dispinterface method declaration. I have an ATL object "A" that fires COM events, and an object "B" that receives them. CA is attributed...
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
2
by: Dave A | last post by:
I am stuggling with databinding a drop down list, hooking into the SelectedIndexChanged and attempting to avoid using the viewstate. The drop down list is quite large so I would prefer to avoid...
8
by: pigeonrandle | last post by:
Hi, Has anyone had any experience with hooking messages in other application windows (like SPY++). I want to listen for WM_MOVE messages, but can only seem to find examples of Keyboard and Mouse...
7
by: nick.fletcher | last post by:
I have a custom collection which derives from Collection<which stores a number of objects. Before each item is added to the collection - an event which it exposes is hooked by the collection and...
1
by: Sean | last post by:
Here is a code I found that notifies if an event has been generated. I still can't find anything that would actually grab the event and export it a file which is what I am trying to do #include...
1
by: Tom Rahav | last post by:
Hello, I try to develop application that runs in the background and suppose to display a small form with menu whenever the user clicks the middle mouse button (also when my application is not the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.