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
Explain exception handling in .net.
how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly
What are the memory-mapped files?
Is sql backend or frontend?
How to manage different kinds of sessions in ASP.NET?
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
What is the usage of DelegatingHandler?
What are user controls?
List the major built-in objects in asp.net?
What is ashx file in asp.net?
What is session id in web application?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?
Which method do you use to enforce garbage collection in .net?
What is the meaning of TestApi?
Where can I get the details on migration of existing projects using various technologies to asp.net?