How do you add a javascript function for a link button in a
datagrid?
Answers were Sorted based on User's Feedback
Answer / ish
Make object of particular button
Ex:
LinkButton lnbDelete=(LinkButton) e.Item.FindControl
("Delete");
After that we can use it with JavaScript:
lnbDelete.Attributes.Add("Onclick","javascript:return
confirm('Are you sure you want to delete this?');");
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / krishna prasad
in databound event
foreach(dataview/datagrid items)
{
find the linkbutton(objLinkButton) row.findcontrl
("LinkButtonID")
objLinkButton.attributes.add("onClick","return "validates
();")
}
| Is This Answer Correct ? | 4 Yes | 1 No |
what to magage the state manament in asp.net with respect to in_prock and out_prock
What is the state management in asp.net?
How do you store a value in viewstate and retrieve them?
Any disadvantages in Dataset and in reflection ?
0 Answers DELL, Digital GlobalSoft,
What is simple data binding?
I need some questions regarding asp.net for 1.5yrs of Experience.
What is GAC in ASP.NET 2.0
Explain a program using razor view engine to create a simple application? : asp.net mvc
How do you retrieve information from web.config ?
web farm .. how does session shuld be stored... if inproc used? does the session persists from one server to other.
About the Usage of htmlencode and urlencode ?
How does a content page differ from a master page?
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)