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 parameters can you pass in the url of the api? Can get and post use the same url?

0 Answers  


what is the difference b/w .net 1.1 and 2.0 ?

2 Answers   Polaris,


what are the new server controls added in Asp.net 2.0?

1 Answers   DOSPL,


What is the difference between <%#%> and <%=%>?

4 Answers   IBS,


Which is better php or asp.net?

0 Answers  






Which is the best institute for ASP.NET?

8 Answers   ABC Infotech, Tech Mahindra,


What is the difference between HTTP-Post and HTTP-Get ?

1 Answers  


What are the advantages and limitations of query string?

0 Answers  


What is applicatio domain?

0 Answers   MCN Solutions,


what is the cursor

1 Answers   Wipro,


WHAT IS OBJECT POOLING

2 Answers   Fidelity,


if u r projet consist of 4 people means how can u manage the file

10 Answers   Mind Tree,


Categories