Click here to Skip to main content
15,886,734 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hiiii Friends...I have module in which i m deleting records..before deleting that records i need users permission with ok or cancel button.. how to code this..please help me..?Thanks in advance..


C#

Posted

There is good number of components in the form of jQuery plug-ins to solve this problem nicely. Please see:
http://bit.ly/S8DVdS[^].

I would highly recommend learning jQuery. You can start here:
http://en.wikipedia.org/wiki/JQuery[^],
http://docs.jquery.com/How_jQuery_Works[^],
http://docs.jquery.com/Tutorials[^].

—SA
 
Share this answer
 
Comments
Espen Harlinn 19-Nov-12 19:16pm    
Nice links :-D
Sergey Alexandrovich Kryukov 19-Nov-12 19:29pm    
Thank you, Espen.
--SA
XML
<script>
function disp_confirm()
{
var r=confirm("Press a button!")
if (r==true)
  {
  alert("You pressed OK!")
  }
else
  {
  alert("You pressed Cancel!")
  }
}
</script>
 
Share this answer
 
 
Share this answer
 
You don't use graphical message box for ok and cancel.You use java script for solve this problem.
 
Share this answer
 
Comments
Aysha Patel 19-Nov-12 0:21am    
If u know javascript for this then post me the code.
USE THIS CODE:


MessageBox.Show("Successfully Deleted","Delete",MessageBoxButtons.OKCANCEL,MessageBoxIcon.Asterisk);
 
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