Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
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..
 

 

Posted 18-Nov-12 18:08pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
Comments
Espen Harlinn at 19-Nov-12 19:16pm
   
Nice links :-D
Sergey Alexandrovich Kryukov at 19-Nov-12 19:29pm
   
Thank you, Espen.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

<script>
function disp_confirm()
{
var r=confirm("Press a button!")
if (r==true)
  {
  alert("You pressed OK!")
  }
else
  {
  alert("You pressed Cancel!")
  }
}
</script>
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You don't use graphical message box for ok and cancel.You use java script for solve this problem.
  Permalink  
Comments
Aysha Patel at 19-Nov-12 0:21am
   
If u know javascript for this then post me the code.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

USE THIS CODE:
 

MessageBox.Show("Successfully Deleted","Delete",MessageBoxButtons.OKCANCEL,MessageBoxIcon.Asterisk);
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 434
1 Nirav Prabtani 338
2 Abhinav S 170
3 PIEBALDconsult 160
4 Dave Kreskowiak 155
0 OriginalGriff 7,640
1 Sergey Alexandrovich Kryukov 6,836
2 Maciej Los 3,919
3 Peter Leow 3,698
4 CHill60 2,742


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100