HttpHandler detect which postback event occured

G

Guest

hi all,

im building an httphandler and need to identify which event occured in the
page
is there a way to do so (beside context.Request.Form.Keys[3] which catch the
postback action)

Thanks in advanced
 
K

Karl Seguin [MVP]

I wouldn't think so...Request.Form is the best solution - especially since
that's what .NET uses itself to determine which event (if any) should be
raised.

Karl
 
B

bruce barker \(sqlwork.com\)

depends on how standardized your pages are. on a postback the browser send a
list of name value pairs. if a submit button caused the postback, it name
and value are included. if a .net auto-postback control caused the post, a
hidden field "__EVENTTARGET" is filled in with the name of the postback
control.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top