Click here to Skip to main content
16,017,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to delete a row from the GridView Control. While Deleting, Alert Box displays Yes OR No button , If User Clicks No Nothing Should be happen the GridView is as it is. But If User Clicks Yes, Row Should be deleted and Below GridView Text Should be shown as "The Employee With ID=1001 Deleted".


Thanks
Posted
Updated 30-Oct-13 21:18pm
v2
Comments
Thanks7872 31-Oct-13 3:18am    
And what is the problem you are facing? Where are you stuck?

Try this:
OnClientClick="return confirm('Are you Sure You want to Delete this Record?');"

in your image button
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900