How do you add a javascript function for a link button in a
datagrid ?
Answers were Sorted based on User's Feedback
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 |
Answer / subhash saini
After finding the link button
LinkButton.attribute.add("onclick",javascript:return
testfunction();");
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / rana rashid
onClintClick()
add the java funtion name and call it...
Is This Answer Correct ? | 5 Yes | 5 No |
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 |
Difference between application events and session events
Name the namespace which is used by ado.net?
How can u debug your .net application?
What is the difference between a.Equals(b) and a == b?
Explain what is an abstract class?
How is it possible for .NET to support many languages?
What are the event handlers that we can have in global.asax file?
What is X-Path?
Explain the server control events of asp.net ?
What are different types of directives in .NET ?
Explain the difference between asp.net mvc and asp.net webforms
What is an application domain?