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 |
Explain the concept of event bubbling in ASP.NET?
0 Answers Sans Pareil IT Services,
detail code for sql data connections?
What are the differences between Dataset and DataReader?
What are the three parts of an http response?
Which is better php or asp.net?
What do you mean by authorization?
What is state management in .net?
Can we use multiple web.config files in an sigle appliction?
About Global .asax ?
14. What are your Future Plans for Swatz Oils GROUP U.K?
0 Answers CSC, Swatz Oils, TCS,
If I update session state, should I lock it, too? Are concurrent accesses by multiple requests executing on multiple threads a concern with session state?
What is Response.Flush method ?