show confirm box in asp.net+c# with click on link
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
I want to delete a record from database with link in web.when the link was clicked display a yes/no question for delete. Any info would be much appreciated,
-
I want to delete a record from database with link in web.when the link was clicked display a yes/no question for delete. Any info would be much appreciated,
On the link you can call a javascript function like : [Delete](javascript:Validate_content();) and define this javascript function to see Yes/No confirmation box..... <!-- function Validate_content() { var answer = confirm("Are you sure you want to Delete ?"); if(answer) { document.contentform.submit(); } else { return; } } //--> Please remember, you need to manage c# code for a particular Id or whatever... Suman Singh