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

I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?

1666


Can we use MSSql as backend in asp.net...if yes then How.?

766


Explain the difference between value type and reference type?

423


In which event of page cycle is the viewstate available?

769


Which is better union or union all?

754






What are the asp.net server side objects?

690


what is AutoEventWireUp and what is the use of This property explain in details?

1329


Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?

1910


Is razor a programming language?

694


Explain the difference between sql invalidation and sql notification.

710


What are query strings used for?

713


Securitywise What are the Enhancements in 2.0?

1659


What is a viewbag?

695


Where session variables are stored?

718


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

725