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


Please Help Members By Posting Answers For Below Questions

Explain parts of assembly?

754


What is a session in programming?

770


What is the function of new view engine in asp.net? : asp.net mvc

767


What is xaml? Are xaml file compiled or built on runtime?

749


When Cookies are expired in ASP.NET?

792


Is it right that ASP.NET Web API has replaced WCF?

745


Explain the different parts that constitute ASP.NET application?

788


What are the asp.net 2.0 features?

764


How can you ensure a permanent cookie?

779


How does u call and execute a sp in .net?

759


About CLR, reflection and assemblies?

1744


What are the main requirements for caching?

786


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

1638


What is application variable in asp.net?

700


What are the differences between code behind and code inline?

739