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
Elaborate differentiation between ViewState and SessionState?
How to Separate background image and front image from original picture....
What is the equivalent of date() and time() in asp.net?
How do you create a master page?
What is asp.net web application?
What is a ashx file?
What are the major built-in objects in ASP.NET?
What is ascx?
What is the differences between a primary key and a unique key in sql server?
How many types of server controls do we have?Also explain differance between them taking an example of ASP.NET?
What is httpresponse?
Which data type does the rangevalidator control support?
What is asp.net mvc5? : Asp.Net MVC
How many ways are there to maintain a state in .net? What is view state?
What is cross page posting? How is it done?