[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Which control initiated post back

Mike Malone

2/19/2004 6:08:00 PM

Is there a way in the post_back method to detect which control caused the postback?

- mike
1 Answer

Alvin Bruney

2/21/2004 4:51:00 AM

0

Yes this information is wrapped in the sender object. If for example, it came from a textbox, you can cast sender to a textbox testing to see whether it is null or not

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl...
"Mike Malone" <mikemalone@REMOVE_CAPSconsultant.com> wrote in message news:OhItENx9DHA.1472@TK2MSFTNGP11.phx.gbl...
Is there a way in the post_back method to detect which control caused the postback?

- mike