How do you add a javascript function for a link button in a
datagrid ?

Answers were Sorted based on User's Feedback



How do you add a javascript function for a link button in a datagrid ?..

Answer / vishal jani

you can add a javascript function in the link button of the
datagrid under the itemdatabound event as below


e.item.findcontrol("linkbtnname")
linkbtn.attribute.add("onclick",javascript:returnfuctionname()");

Is This Answer Correct ?    8 Yes 2 No

How do you add a javascript function for a link button in a datagrid ?..

Answer / subhash saini

After finding the link button
LinkButton.attribute.add("onclick",javascript:return
testfunction();");

Is This Answer Correct ?    2 Yes 1 No

How do you add a javascript function for a link button in a datagrid ?..

Answer / rana rashid

onClintClick()
add the java funtion name and call it...

Is This Answer Correct ?    5 Yes 5 No

How do you add a javascript function for a link button in a datagrid ?..

Answer / vidit tyagi

you can add a javascript function in the link button of the
datagrid under the itemdatabound event as below


linkbutton linkbtn=(linkbutton)( e.item.findcontrol
("linkbtnname"))
linkbtn.attribute.add("onclick",javascript:returnfuctionname
()");

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

after which page life cycle event all properties of control will be "fully loaded "

10 Answers   FactorH,


How can you implement encapsulation in asp.net?

6 Answers   TCS,


Which is better asp.net or php?

0 Answers  


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

0 Answers  


What types of data validation events are commonly seen in the client-side form validation?

0 Answers  


what is SAP fullform

161 Answers   A3Logics, Amazon, DFD, Federal Mogul, Hol Info, IBM, Infosys, Jai Ganesh, Kesri Metal, Lupin, Microsoft, RPG, SAP Labs, SRS Group, TCS, Videocon,


What is caching? What are the different types of caching?

6 Answers  


How can we call webservices in Banking Applications? and where we are using it?

0 Answers   FCG,


what is use of doctype tag in asp.net

1 Answers   TCS, Wipro,


What is Boxing and Unboxing?

7 Answers   Accenture, IBM, Tech Mahindra,


How to store checkbox value in database in asp.net mvc? : Asp.Net MVC

0 Answers  


What are the asp.net objects? is it application obects, cache objests etc. or is it state managements, web services etc?

3 Answers   Syntel,


Categories