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
Define common type system?
How many types of cookies are available in asp?
What is web api and why to use it?
Explain how can you debug your .net application?
How long does an http session last?
What are Session states available and its Uses?
Where is the view state data stored in asp net?
Explain the difference between singleton and single call?
Define a static class?
How to fetch a data from one table to another table in asp.net ?
How do we assign page-specific attributes?
Who generates session id?
What is redirecting behavior?
What is a 307 redirect?
Tell me the code snippet to show how we can return 404 errors from HttpError?