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
If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?
How many types of state management are there in asp net?
What are app services?
What is the use of the tag in the web.config file?
In which event are the controls fully loaded?
What is the use of placeholder control? Can we see it at runtime?
Explain the difference between singleton and single call?
What is the advantage of using Windows authentication in a Web application?
Explain client-side scripting?
What is csrf attack in asp.net?
How to find last error which occurred?
What are the contents of cookie?
What is applicatio domain?
How will you load dynamic assembly?
Define the term Web Garden?