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

Explain the difference between or and orelse?

539


Will the asp.net validators run in server side or client side?

646


How many types of state management are there in asp net?

524


What are the namespace classes used in asp.net mvc? : asp.net mvc

552


Explain the page lifecycle of an asp.net mvc? : asp.net mvc

438






Can I read the hard disk serial # of the client computer using asp.net?

558


Differentiate strong typing and weak typing

530


Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

653


What are the advantages and limitations of query string?

574


What do you mean by authorization?

527


what are the Custom controls in asp.net?

570


What is css in asp.net?

555


Explain the difference between authentication and authorization.

600


What is the differences between a primary key and a unique key in sql server?

536


What are the main requirements for caching?

543