ASP.NET ID of control that triggers postback

  • Thread starter Thread starter krishnan112
  • Start date Start date
K

krishnan112

HI

i was wondering if anyone knows how to grab the ID of a control
(button in my case), on a asp.net form that triggers a postback. (in
vb script)


thanks very much in advance

krishnan
 
Why do you want to know about VBScript?

Just look at the sender argument of the Page_Load() event. Sender always
references the control that caused the event to fire in the first place.
 
You can render <ServerControl>.ClientID on the page as part of vbscript.

Thanks,
Harshal
 
Back
Top