How do you add a javascript function for a link button in a
datagrid?
Answer Posted / 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 |
Post New Answer View All Answers
What’s the use of “GLOBAL.ASAX” file?
What is ashx file in asp.net?
How can you enable impersonation in the web.config file?
What is webresource axd?
What is query string in asp.net?
Do you know caching feature?
What is the biggest disadvantage of “Other Return Types” in Web API?
What are the disadvantages of view state?
What is server components?
Securitywise What are the Enhancements in 2.0?
Why viewstate is used in asp.net?
Where the viewstate is stored after the page postback?
What are the differences between code behind and code inline?
What is the difference between globalization and localization?
What is the difference between ASP.NET Webforms and ASP.NET MVC?