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   SiteMap shows list of All Categories in this site.
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
How do you add a javascript function for a link button in a
datagrid?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you add a javascript function for a link button in a datagrid?
Answer
# 1
in databound event
foreach(dataview/datagrid items)
{
find the linkbutton(objLinkButton) row.findcontrl
("LinkButtonID")
objLinkButton.attributes.add("onClick","return "validates
();")
}
 
Is This Answer Correct ?    0 Yes 1 No
Krishna Prasad
 
  Re: How do you add a javascript function for a link button in a datagrid?
Answer
# 2
Make object of particular button 

Ex:

LinkButton lnbDelete=(LinkButton) e.Item.FindControl
("Delete");

After that we can use it with JavaScript:
lnbDelete.Attributes.Add("Onclick","javascript:return 
confirm('Are you sure you want to delete this?');");
 
Is This Answer Correct ?    3 Yes 1 No
Ish
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Why is validation always done on the server? When does that occur?  1
Explain the differences between Server-side and Client-side code?  2
Whats MSIL, and why should my developers need an appreciation of it if at all?  1
WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID Seion-Infotech1
Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks  1
Finally and dispose methods? Microsoft1
What is the difference between a session object and cache object CitiGroup2
I am having four text boxes in my web application. I am setting Required Field validator to each Text box. And I am having two buttons in my application. If i clicked the first button only first two text box validation will get fire. Dont show error message for remaining two text box. If i clicked second button last two text box validation will get fired. It will not consider the first two validation controls. That is how to enable and disable the validation controls.  4
Can u able to get the xml document in crystal report if yes how its possible  1
One application have three forms for registration .submit button is at third form.after filling three forms only u have to click submit button.After clicking the submit button all the values in first,second& third form saved on sql server.how to handle this situation . TCS6
What is Boxing and Unboxing? Accenture6
Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process? Perot-Systems1
What is the difference of a LEFT JOIN and an INNER JOIN statement? What is a Cartesian product? What causes it? Syntax-Softtech1
can i inherit one web applications into another web applications in asp.net?  6
Describe and In Process Vs Out of Process component. Which is faster? Syntax-Softtech2
What is the best way to search any exact information on google? Intellevate2
ASP.NET uses event driven programming model.Justify.  1
For a server control, you need to have same properties like color maxlength, size, and allowed character throughout the application. How do you handle this? Microsoft2
Can we throw exception from catch block ? Accenture3
What method do you use to explicitly kill a users session?  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