ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
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?
 Question Submitted By :: Kalyan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
you can get the button name with request.forms collection 
in the page load.
 
Is This Answer Correct ?    1 Yes 2 No
Guest
 
  Re: 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
# 2
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 4 No
Savita
 
 
 
  Re: 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
# 3
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 2 No
Prahlad
 
  Re: 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
# 4
due to the question i have one doubt?
The click event is done while i creating the web 
application time or after the deployment?
 
Is This Answer Correct ?    0 Yes 2 No
Bose
 
  Re: 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
# 5
do a Response.write(sender.toString()) inside each of the 
click event methods
 
Is This Answer Correct ?    0 Yes 1 No
Jaspaul
 
  Re: 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
# 6
Just write code on page load

Response.Write(Request.Form[1].ToString());

u got button name which one u clicked.
 
Is This Answer Correct ?    4 Yes 1 No
Vijaykumar
 
  Re: 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
# 7
Useing commandName property we can find out.
 
Is This Answer Correct ?    0 Yes 1 No
Sandhya
 
  Re: 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
# 8
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 1 No
Sen
 
  Re: 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
# 9
the above code was returning the hidden field value. which 
will be non readble format.please make sure before entering 
the answer will it work or not.
 
Is This Answer Correct ?    0 Yes 1 No
Nithya_raghu
[CoMakeIt]
 
  Re: 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
# 10
i have two button btnadd and btnupdate
If (Array.IndexOf(Request.Form.AllKeys, btnadd.ClientID)) 
{
}
 
Is This Answer Correct ?    0 Yes 0 No
Gaurav Joshi,mohit Jethva
 
  Re: 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
# 11
In page Load
Page.Request.Form.Keys 
will get which button is clicked
 
Is This Answer Correct ?    1 Yes 0 No
Thiyagu
 
  Re: 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
# 12
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 1 No
Manjula
 
  Re: 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
# 13
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 1 No
Mupnesh
 
  Re: 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
# 14
Request.Form("bsubmit")="name of button"
 
Is This Answer Correct ?    0 Yes 0 No
Rathore Kuldeep
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
How many Garbage Collectors are there for one Application or one Page Emphasis1
About delegates ? TCS7
I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'  2
Below is a code extract from an ASP.Net application. The code basically reads data from the “name” field in the “members” table and prints them onto the webpage. Using the assumptions provided, fill in the 4 blanks below so that the code will run correctly. ‘Assumptions: ‘conn_str is a variable that holds the connection string to the database ‘Objects dbcomm and dbread are already declared earlier dbcomm = New OleDbCommand("SELECT name FROM members", conn_str) dbread = dbcomm._______________ _____________________ response.write(_______________) _____________________ dbread.Close() Techno-Solutions3
How do you handle unhandled exceptions in ASP.NET?.  3
Explain Factory pattern? Microsoft1
what is new debug tools in asp.net ?  1
What is an assembly? Value-Labs1
What is caching and types of caching ? Infosys2
Difference between Htttppost and Httpget Methods? Microsoft3
Can the validation be done in the server side? Or this can be done only in the Client side?  2
what is an Eventbubbling? DSS3
which scripting is used browser by server when we use validation controls. 1.javascript 2.vbscript 3.jscript 4.perl Satyam8
Whats MSIL, and why should my developers need an appreciation of it if at all?  1
What is view state and how this can be done and was this there in asp ? Accenture1
what is impersonation in ASP.NET? Merrill-Lynch4
What is a WebService and what is the underlying protocol used in it? Namespace?  1
how to increase performance of web site? if there is a page with high load. the content is high then what should we do to increase performance? TCS2
Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?  2
IS IT POSSIBLE TO SET TIME FOR COOKIES?HOW IT IS POSSIBLE.  1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com