URGENT !! Finding the control ID that sent postback in Page_Load

A

Abhijit Kothiwale

I need urgent help on this one. Basically, I have two
buttons on my web form. On clicking either one i need to
do some specific validation depending on which button got
clocked. This I need to do in the Page_Load() fn. For
this, I need to find which button was clicked for this
post back to happen. Is there a way to do this thru code.
In the watch window we found the value that corresponds to
this i.e.
Sender->ASP.WebForm1_aspx->Trial_Code_sender.WebForm1-
System.Web.UI.Page-
_registeredcontrolthatrequireraiseevent

However, i cannot find how to put this in code.

Pls help.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top