How do you add a javascript function for a link button in a
datagrid?
Answer Posted / ish
Make object of particular button
Ex:
LinkButton lnbDelete=(LinkButton) e.Item.FindControl
("Delete");
After that we can use it with JavaScript:
lnbDelete.Attributes.Add("Onclick","javascript:return
confirm('Are you sure you want to delete this?');");
Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is a reflection?
What are the differences between clr & cts?
Do you support digital rights management to protect my videos?
What is postback in asp net?
What is custom attribute? How to create?
Differentiate between file-based dependency and key-based dependency.
What is a runtime version?
How can we register exception filter from the action?
What are the media types of http requests and response?
What is the file through which you can customize your asp.net application?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What is the server of asp.net?
What is runat?
What is variable and constant in .net programming language?