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

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

1618


How long the items in ViewState exists?

1184


Explain page output caching?

748


Difference between .NET and previous version?

2309


What is a page life cycle? What are the events in a page life cycle?

679


What are the server control tags in asp.net.?

811


What is asp according to you?

741


Define tracing.

842


How does the iis work?

795


Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?

785


What is considered a service provider?

724


What is Pre-Render event in ASP.NET?

815


What is the extension of master page in asp.net?

757


Explain the Session state management options available with ASP.NET?

777


Is post back in asp.net?

705