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 the difference between pathparam and queryparam?
What is difference between cookies and cache?
Explain page output caching?
Write some code using interfaces, virtual methods, and an abstract class`
can sn.exe can be used before gacutil.exe
What is CSS? What is the advantage os using CSS in ASP.NET Web Applications?
Project Architecture (3tier, n-tier)
what is the role of aspx file ?
About Garbage Collector?
What is Cookies Less Session?
What is ViewState ? and how it is managed ?
How does the XmlSerializer work? What ACL permissions does a process using it require?