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 page.registerclientscriptblock and page.registerstartupscript?

668


What is difference between singleton and single call?

734


What is meant by asp.net?

620


What is difference between web config and global asax?

521


How can you apply a theme to your asp.net application?

619






Who can consume WebAPI?

668


Can we handle the error and redirect to some pages using web.config?

1058


What are the types of validation in asp net?

633


What is asp.net and its advantages?

619


how to retrieve property settings from xml .config file.

635


How you can return View from ASP.NET Web API method?

647


What is difference between ispostback and autopostback in asp net?

611


What is the server of asp.net?

598


What is the difference between client-side and server-side validations in webpages?

651


What is the life-span of the items in the viewstate?

586