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

How do I know asp.net mvc version? : Asp.Net MVC

599


Can you nest updatepanel within each other?

644


Can you dynamically assign a Master Page?

668


What is Web API?

723


Where is asp.net view state stored?

606






Why viewstate is used in asp.net?

619


Write code to send e-mail from an asp.net application?

644


benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

1741


List of words of preprocessor in .net?

603


Define resource files.

657


Can the unique key be null?

643


What is difference between session and cookies?

643


Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj

2935


Explain one critical mapping?

662


Describe the .net base class library.

620