ASP.NET ID of control that triggers postback

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
 
S

Scott M.

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.
 
H

Harshal

You can render <ServerControl>.ClientID on the page as part of vbscript.

Thanks,
Harshal
 

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

Top