How do you add a javascript function for a link button in a
datagrid ?
Answer Posted / 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 |
Post New Answer View All Answers
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
How do we access view state value of this page in the next page?
What methods are fired during the page load? Init()
What is application and session in asp.net?
What is the difference between page.registerclientscriptblock and page.registerstartupscript?
What is the use of service provider?
What is the used of "ispostback" property?
Which method do you use to kill explicitly a users session?
Explain the use of duration attribute of @outputcache page directive.
What is the mvc framework?
What is the maximum timeout we can set for Cookies?
What is the use of placeholder control? Can we see it at runtime?
Where are session variables stored?
What is role-based security in asp.net?
What is inproc and outproc?