You have two buttons in web form and i clicked on one of
the button, so how do i find which button i've clicked on
the form in my page load?

Answer Posted / richard des jardins

I'm not real sure where you are trying to get this
information. Lets say you have two buttons whose
OnClick="MyButtonClick". The void MyButtonClick(Object
sender,EventArgs e) exposes the Button Object with the
sender reference. Cast the sender to a button and do what
ever you want with it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is directive in asp net?

539


What does asp stand for in asp.net?

515


Which is faster viewbag or viewdata?

556


What does the orientation property do in a menu control?

531


What is the difference between equals() and == in c#?

564






Is session server side or client side?

531


Explain about secure socket layer?

522


what is silver light when will we use silver light,

1439


Is it possible to migrate visual interdev design-time controls to asp.net?

561


What are html helpers in asp.net?

523


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1488


Explain the difference between response.redirect vs server.transfer

618


Is asp.net still used?

491


We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?

433


Contrast OOP and SOA. What are tenets of each ?

1738