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 |
How to kill session?
What is a 307 redirect?
how to increase performance of web site? if there is a page with high load. the content is high then what should we do to increase performance?
3 Answers Emphasis, Mphasis, TCS,
What are the uses of list view control in Asp.net?
Describe the method to create a permanent cookie?
what is asp and asp.net ?
2 Answers Inspira Technologies,
Describe the difference between a Thread and a Process?
What is the equivalent of date() and time() in asp.net?
How use Xml data in ASP.net?
is gateway for sms continue connected for sending sms.how?
What are the asp.net objects? is it application obects, cache objests etc. or is it state managements, web services etc?
WHT IS DIFFERENCES BETWEEN HTML CONTROLS AND SERVER CONTROLS.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)