How do you add a javascript function for a link button in a
datagrid ?
Answer Posted / vishal jani
you can add a javascript function in the link button of the
datagrid under the itemdatabound event as below
e.item.findcontrol("linkbtnname")
linkbtn.attribute.add("onclick",javascript:returnfuctionname()");
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
How is the asp.net mvc architecture different from others? : asp.net mvc
What are the differences between code behind and code inline?
What are session state modes in asp.net?
What are different methods of session maintenance in asp.net?
What are validator? Name the validation controls in asp.net?
What is application variable in asp.net?
What is clickid?
What is a 307 redirect?
Which is better union or union all?
How does u call and execute a sp in .net?
Disable Mouse right click on web page in asp.net?
Which .NET framework supports Web API?
Why viewstate is used in asp.net?
What is query string with example?
Explain about asp.net 2.0 themes?