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
How many ways are there to maintain a state in .net? What is view state?
Is it possible to create web application with both webforms and mvc?
what is command line compiler.what are the steps and how it is related to debugging.
What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?
Give 2 examples for scenarios when routing is not applied?
Why asp.net is better than php?
Why is global asax is used for?
Define static function?
What are url fragments?
Can you explain composite pattern?
What is dynamic web page with example?
In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?
Why would anyone need to implement their own hashtable or linked list?
Define common type system?
What is server infrastructure?