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?

Answers were Sorted based on User's Feedback



You have two buttons in web form and i clicked on one of the button, so how do i find which button..

Answer / sen

Just write code on page load and ur getting a control name
which one u clicked

string ctrlname = Page.Request.Params["__EVENTTARGET"];

Is This Answer Correct ?    0 Yes 2 No

You have two buttons in web form and i clicked on one of the button, so how do i find which button..

Answer / manjula

in page load,we get those data which is bind to that webform
previously,we cannot click any button in page load

Is This Answer Correct ?    0 Yes 2 No

You have two buttons in web form and i clicked on one of the button, so how do i find which button..

Answer / prahlad

for that purpose they give the option is the tooltip that is
the shows the button name when you put the curser on the
button and also they might wrote the name of the button name.

Is This Answer Correct ?    0 Yes 3 No

You have two buttons in web form and i clicked on one of the button, so how do i find which button..

Answer / mupnesh

by right click on the button. Property of the button will
display and on top the name of button display.

Is This Answer Correct ?    0 Yes 3 No

You have two buttons in web form and i clicked on one of the button, so how do i find which button..

Answer / savita

try 2 remember which button u had clicked. again select
that button, go its property window by just right click on
that button. n u get its name. which r unique.ok.

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More ASP.NET Interview Questions

What is the viewstate in asp.net?

0 Answers  


what is webservices. howit is use in our project .

1 Answers   Patni,


What are sharepoint pages?

0 Answers  


Interface and Abstract class, inheritance, abstraction with examples. Polymorphism (difference betn overloading and overriding

2 Answers   Syntel,


How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)

2 Answers  






What are the different session state management options available in asp.net?

0 Answers  


which type of data u send through request.querystring()?and tell abt exact size?

1 Answers   CSC, Nay Company,


What is the page life cycle in asp.net?

0 Answers  


after which page life cycle event all properties of control will be "fully loaded "

10 Answers   FactorH,


How do you install windows service?

4 Answers   Tech Mahindra,


Do session use cookies in asp net?

0 Answers  


Whats the use of @ Register directives ?

4 Answers  


Categories