DataGrid....how can i....?
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
how can I put a client side code for handling "delete" button inside a datagrid ...this grid created at runtime...just to make alert of deleting by javascript?:):) thanks.. there is no God but Allah..:)
-
how can I put a client side code for handling "delete" button inside a datagrid ...this grid created at runtime...just to make alert of deleting by javascript?:):) thanks.. there is no God but Allah..:)
You can catch the databound event and find the control and put the onclick attribute like follows:
LinkButton lnk = (LinkButton)e.Item.FindControl("lnkDel"); lnk.Attributes["onclick"] = "javascript::return confirm('Message');";
Regards R.Arockiapathinathan