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                      
tip   To Refer this Site to Your Friends   Click Here
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
 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 ?    0 Yes 1 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 1 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 0 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 0 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 0 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 ?    0 Yes 0 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 0 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 0 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 0 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
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What are session variables? Microsoft2
About DataAdapters ? Accenture5
Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?  1
What is advantage and disadvantage of viewstate  2
What is Http handler? Accenture2
You need to retrieve data from a Microsoft SQL Server 2000. Currently you are using an oleDbConnection object to connect to the database server. You need to be able to retrieve the data from the database server in XML format. Which approach would be the most efficient? Select all that apply. Each answer constitutes part of the whole answer. a) Change to the SQL .NET provider. b) Use the ExecuteXmlReader() method of the xxxCommand object c) Use the DOM to create the XML document. d) Use the XmlDocument.Load() method to create the XML Document. Syntax-Softtech1
If i have 1000 records in dataset, how to do paging? Mind-Tree2
For Web services where you can browse on the Internet?  1
Suppose you display a data having 200 records in a datagrid. Then you edit 100 records of them. Now when you will press update button,all 100 records should be updated in single shot rather than reading every record and updating. How to do it? Wipro2
What is the Global.asax used for?  3
Way of updating a table other than stored procedure and hard coded query?  1
Which of the following hosts Can't be used to create .net Application? a) IIS b) Internet Explorer c) ASP.Net d) Windows Shell Which one is correct? CTS1
What base class do all Web Forms inherit from?  3
What is viewstate? Microsoft3
what are the types of ASP objects ? Satyam4
Can you edit data in the Repeater control?  3
How Web Service help? What is the difference between Remoting & Web Servcies?  2
how can you handle "control is not part of this page " error? FactorH3
which directive is mandatory in page control AG-Technologies1
Why do we use Option Explicit? Microsoft1
 
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