How do you add a javascript function for a link button in a
datagrid ?
Answer Posted / vidit tyagi
you can add a javascript function in the link button of the
datagrid under the itemdatabound event as below
linkbutton linkbtn=(linkbutton)( e.item.findcontrol
("linkbtnname"))
linkbtn.attribute.add("onclick",javascript:returnfuctionname
()");
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the event handlers that we can have in global.asax file?
Explain how can we inherit a static member?
What are cao and sao.
Why should i prefer JSP over asp.net or any other web development language..??
What websites use asp.net?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?
Define authentication and authorization.
List the events in page life cycle.
Explain the difference between asp.net mvc and asp.net webforms
What is difference between datalist and gridview?
How does session work in asp net?
Explain the Session state management options available with ASP.NET?
What is the use of web.config file?
What does passport and windows authentication mean in ASP.NET?
How do you implement sql caching in asp.net?