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 jade template engine?

0 Answers  


Explain how server control validation controls works?

2 Answers   CMS, Syntax Softtech,


What is the difference between a.Equals(b) and a == b?

4 Answers  


What is http only cookie?

0 Answers  


What is a transaction? a) A banking term. b) A concept used to describe a step in the business process. c) A combination of DML steps that must succeed or the data is retuned to its initial state. d) A combination of DDL steps that must succeed or the data is retuned to its initial state.

5 Answers   Syntax Softtech,






About SOAP ?

3 Answers   Cognizant, Infosys,


How to Separate background image and front image from original picture....

0 Answers   Sans Pareil IT Services,


I need to download file from web server, without using save as dialogue box. Can anyone help, thanks In advance.

1 Answers  


What are the differences between Trace and Debug?

2 Answers   Accenture,


What is semantic gap?

0 Answers   MCN Solutions,


How will you load dynamic assembly?

0 Answers  


In asp.net, how can you validate drop down box?

0 Answers   Accenture,


Categories