How do you add a javascript function for a link button in a
datagrid ?
Answers were Sorted based on User's Feedback
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 |
Answer / subhash saini
After finding the link button
LinkButton.attribute.add("onclick",javascript:return
testfunction();");
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / rana rashid
onClintClick()
add the java funtion name and call it...
Is This Answer Correct ? | 5 Yes | 5 No |
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 |
after which page life cycle event all properties of control will be "fully loaded "
How can you implement encapsulation in asp.net?
Which is better asp.net or php?
What is difference between asp.net and asp.net mvc? : Asp.Net MVC
What types of data validation events are commonly seen in the client-side form validation?
what is SAP fullform
161 Answers A3Logics, Amazon, DFD, Federal Mogul, Hol Info, IBM, Infosys, Jai Ganesh, Kesri Metal, Lupin, Microsoft, RPG, SAP Labs, SRS Group, TCS, Videocon,
What is caching? What are the different types of caching?
How can we call webservices in Banking Applications? and where we are using it?
what is use of doctype tag in asp.net
What is Boxing and Unboxing?
7 Answers Accenture, IBM, Tech Mahindra,
How to store checkbox value in database in asp.net mvc? : Asp.Net MVC
What are the asp.net objects? is it application obects, cache objests etc. or is it state managements, web services etc?