Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > URGENT !! Finding the control ID that sent postback in Page_Load

Reply
Thread Tools

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

 
 
Abhijit Kothiwale
Guest
Posts: n/a
 
      11-10-2003
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
Materpage page_load event fired after content page_load? rockdale ASP .Net 1 11-16-2006 06:59 PM
Webpart - web user control - page_load firing as postback ryan.mclean@gmail.com ASP .Net 1 05-01-2006 09:27 PM
in VB.NET Page_load of a base class called after the derived class Page_load ? z. f. ASP .Net 0 10-19-2004 12:01 PM
Why does page_load fire twice when inheriting from a common overridable Page_Load bminder ASP .Net 1 02-23-2004 08:54 PM



Advertisments