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

Explain the difference between singleton and single call?

0 Answers  


How to do Caching in ASP?

1 Answers  


How to kill more than one session variables at a time

9 Answers   iSoft,


what is the difference between assemblyinfo and webconfig files?

1 Answers  


How do you use viewstate?

0 Answers  






How should I destroy my objects in asp.net?

0 Answers  


Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

0 Answers  


What is asp.net caching?

0 Answers  


how to use web services with code?(with example code)

1 Answers   Accenture,


How many types cache in asp net?

0 Answers  


I have a component with 3 parameter and deployed to client side now i changed my dll method which takes 4 parameter.How can i deploy this without affecting the clent?s code ?

1 Answers   Microsoft, Satyam, Wipro,


Are there resources online with tips on asp to asp.net conversions?

0 Answers  


Categories