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
What is session id in web application?
What is asp.net web pages?
What are the advantages of using Master Pages?
What is the adavantage of using ASP.NET routing?
What is the difference between a default skin and a named skin?
What is asp.net futures?
What is difference between mvc and asp.net? : Asp.Net MVC
What is postback request?
What is Cookies Less Session?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
What are html helpers in asp.net?
Define view state.
What is a SESSION and APPLICATION object?
Explain login controls.
What is redirecting behavior?