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
Where the assembly is stored in asp.net?
What is Pre-Render event in ASP.NET?
What is mvc in angular?
Explain difference between dataset and recordset?
What are web server controls in asp.net?
How can I have a particular web page in an asp.net application which displays its own error page?
What is the difference between custom web user control and a custom web server control?
What's the difference between viewstate and sessionstate?
How do we implement bundling in MVC?
How do you open a page in a new window?
Who can consume WebAPI?
Explain the difference between panel and groupbox classes using .net?
What is asp.net globalization?
How Session use Cookies in State Management?
What is full form of asp.net?