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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / subhash saini

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

Is This Answer Correct ?    2 Yes 1 No

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

Answer / rana rashid

onClintClick()
add the java funtion name and call it...

Is This Answer Correct ?    5 Yes 5 No

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

Answer / 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

More ASP.NET Interview Questions

What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

2 Answers  


What are validator? Name the validation controls in asp.net? How do you disable them?

0 Answers  


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

0 Answers  


What is a 401 redirect?

0 Answers  


ASP.NET Web Service

1 Answers  






what is profiles in asp.net

1 Answers  


What is CLS?

5 Answers   IBM, PrimeLine, TCS,


What are the uses of list view control in Asp.net?

0 Answers   HCL,


How can you assign styles to webforms?

2 Answers   Microsoft,


Turn Off ASP Session State on an IIS 5.1 Web Site

1 Answers  


What is the biggest disadvantage of “Other Return Types” in Web API?

0 Answers  


Which is better asp.net or php?

0 Answers  


Categories