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 difference cookie and session?
What is a runtime version?
How to implement role based security in asp.net mvc? : Asp.Net MVC
How is session id generated?
Why will you usually create an aspnet user account in the database for an asp.net web application?
Can we add code files of different languages in app_code folder?
How do you create a master page?
What is Web Server Control Templates.?
What is the difference between session and viewstate in asp.net?
Mention the namespace that is used to include .net data provider for sql server in .net code?
Explain diff. Between friend and protected friend?
How to unit test Web API?
What is asp.net globalization?
How do we assign page-specific attributes?
What are client activated objects and server activated objects?