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 the procedure to create the environment for asp.net? : asp.net mvc
How many types of file extensions for razor views in ASP.Net MVC?
Where web.config file is used?
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
What is httpresponse?
How do cookies work? Give an example of their abuse.
What is parse in asp.net?
calling result set one procedure to anothar procedure in sql2000
If you want to write your own dot net language, what steps you will you take care?
How would you get asp.net running in apache web servers? Explain it's limitations.
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC
What are the differnt types of handler in ASP.NET?
How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?
what cut off mark for po's,what questions they asked for interview?