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's the use of formatters in .net?

0 Answers  


What is globalization and localization in asp net?

0 Answers  


Differentiate between file-based dependency and key-based dependency.

0 Answers  


How can we prevent browser from caching an aspx page?

0 Answers  


Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

0 Answers  






Give some salient points of difference between request processor and request dispatcher.

0 Answers   Tech Mahindra,


what is uncle aunty file

1 Answers  


Fetch one page value to another page without using state-managment ?

0 Answers   HCL,


Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?

0 Answers  


How can we inherit a static variable?

0 Answers  


What is ASLM?

0 Answers   MCN Solutions,


Explain the difference between AutoPostBack and IspostBack in ASP.NET?

0 Answers   Sans Pareil IT Services,


Categories