473,386 Members | 1,827 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,386 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 1449
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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.