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

How you can access the properties and controls of master pages from content pages?

0 Answers  


Whats an assembly?

6 Answers   Siebel Systems,


Is razor a programming language?

0 Answers  


If there is submit button in a from tell us the sequence what happens if submit is clicked and in form action is specified as some other page ?

1 Answers   MMTS,


How do we implement bundling in MVC?

0 Answers   B-Ways TecnoSoft,


I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.

0 Answers  


What is versioning in .NET?

1 Answers   Syntax Softtech, Wipro,


What are Authentication and Authorization?

0 Answers  


hi all, can we sort the data set without using the gridview sort method

1 Answers   CGI,


What is different between webconfig.xml & Machineconfig.xml ?

1 Answers  


What is viewstate parameter?

0 Answers  


How do you a replicate a set of controls across a number of ASP Pages

2 Answers  


Categories