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
How does session work in asp net?
What do you mean by authentication?
If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?
What is asp.net ajax?
Can you explain the basic use of dataview?
How do you declare static variable?
Why should i prefer JSP over asp.net or any other web development language..??
What is bound controls
Where would you use an ihttpmodule, and what are the limitations if any?
What is a session http?
They mostly asked difference between versions of technologies
What is postback request?
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it
Explain a program using code nuggets to create a simple application? : asp.net mvc
Who generates session id?