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


Please Help Members By Posting Answers For Below Questions

Explain the difference between globalization and localization techniques

622


What does the .webpart file do?

667


What is query string? What are its advantages and limitations?

615


Is post back property in asp net?

625


Define web.config in .net?

734






What is cached data phone?

614


How can you enable impersonation in the web.config file?

659


What are sql joins?

659


Explain automatic memory management in .net.

671


What is the difference between table and query?

627


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1520


What are the different properties of server control that exists?

654


Is sql backend or frontend?

644


Is asp.net still used?

654


Can the dictionary object be created in client?s scope ?

2074