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 is impersonation in ASP.NET?
7 Answers Accenture, Merrill Lynch, Wipro,
Which is an advantage of application service providers?
what is the assembly?
What are the different types of proxy patterns?
What is Model-View-View Model?
What Are Different Types of Debbugers
2 Answers Accenture, TCS, Wipro,
Describe in brief .net framework and its components.
what is shared assembly?
Why will you usually create an aspnet user account in the database for an asp.net web application?
What is redirecting behavior?
Explain the difference between panel and groupbox classes using .net?
They mostly asked difference between versions of technologies
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)