How do you add a javascript function for a link button in a
datagrid ?
Answer Posted / 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 View All Answers
Is LINQ performance wise better or using sqlcommand?
What does mean by a neutral culture?
what is AutoEventWireUp and what is the use of This property explain in details?
Explain some of the major built-in objects in asp.net
What are the benefits of view state?
What is a windows service?
What is %20 in a url?
What's the ASP.Net Application life cycle?
What is viewstate? What does the “enableviewstate” property do?
How to Separate background image and front image from original picture....
What are url fragments?
What is asp net application object?
Why asp.net mvc is better than asp.net? : Asp.Net MVC
What is inproc mode in session?
Is asp.net easy to learn?