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

Difference between application events and session events

0 Answers  


Name the namespace which is used by ado.net?

0 Answers  


How can u debug your .net application?

0 Answers  


What is the difference between a.Equals(b) and a == b?

4 Answers  


Explain what is an abstract class?

0 Answers  






How is it possible for .NET to support many languages?

0 Answers  


What are the event handlers that we can have in global.asax file?

0 Answers  


What is X-Path?

2 Answers   Sherston,


Explain the server control events of asp.net ?

0 Answers  


What are different types of directives in .NET ?

1 Answers  


Explain the difference between asp.net mvc and asp.net webforms

0 Answers  


What is an application domain?

2 Answers   Microsoft,


Categories