How can i give alert box when one row from gridview is deleted (gridview is inside a updatepanel)...... Please help me.....
Hi,
try to:
1. Hook up the RowDeleted event of the GridView.
2. Inject the following JavaScript using the ScriptManager.RegisterStartupScript method:
(function() { var fn = function() { alert('Row Deleted!'); Sys.Application.remove_load(fn); } Sys.Application.add_load(fn); })();I can't understand that...how i give this? from where i call that function?
Hi,
You need to place a timer in the UpdatePanel, and use it to check if a row has been deleted.
When it's true, use ScriptManager.RegisterStartupScript method to register a client script and show a alert.
Hope this gives you a basic idea.
No comments:
Post a Comment