How do you add a javascript function for a link button in a
datagrid ?

Answer Posted / subhash saini

After finding the link button
LinkButton.attribute.add("onclick",javascript:return
testfunction();");

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why asp.net is better than php?

486


Is asp.net free?

555


Which validator control you use if you need to make sure the values in two different controls matched?

644


What are the different methods of session maintenance in asp.net?

531


Disable browser cache for entire ASP.NET website?

659






Explain how asp.net different from asp?

554


What is the Difference between MVC And MVP design pattrens

2201


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

582


What is difference between cookies and cache?

514


What are the differences between clr & cts?

532


Distinguish between Server-side and Client-side code with its functionality?

622


Explain exception handling in .net.

607


What is the benefit of WebAPI over WCF?

563


Which class is used to send an email message from an ASP.NET Web page?

536


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

525