Click here to Skip to main content
11,716,938 members (76,458 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Javascript
hi
i need a custom confirmbox on asp.net button onclienclick() event
Posted 27-Feb-12 17:20pm
Comments
SAKryukov at 27-Feb-12 23:59pm
   
There are too many of such solutions, perhaps more custom that you can imagine :-)
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
This might help you,

Have a look at this site:
http://www.modalpopups.com/demos/0.2/demo.htm[^]

Download: ModalPopups.js
  Permalink  
Comments
amit sahu20 at 28-Feb-12 6:03am
   
how handle post back
Ankit Kumar Gupta at 28-Feb-12 7:47am
   
javascript does not gives you a postback, so there is nothing to handle on server.

But if still you want to do something on server side, then use other controls postback reference to send a server side hit.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I would advise to use jQuery. Please see:
http://jquery.com/[^],
http://docs.jquery.com/How_jQuery_Works[^],
http://docs.jquery.com/Main_Page[^].

You can use a couple of concepts based on jQuery plug-ins.

First of all, please see this framework:

http://www.webappers.com/2009/10/28/simplemodal-a-jquery-modal-dialog-framework/[^],

First concept is the modal popup. Please see:
http://www.queness.com/resources/html/modal/jquery-modal-window.html[^],
http://dinbror.dk/bpopup/[^],
http://bit.ly/xWY2tf[^].

Another one if the dialog: http://jqueryui.com/demos/dialog/[^].

See also a set of solutions using both concepts: http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/[^].

For more in jQuery plug-ins, please read these tutorials:
http://docs.jquery.com/Plugins/Authoring[^],
http://www.authenticsociety.com/blog/jQueryPluginTutorial_Beginner[^].

—SA
  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 599
1 OriginalGriff 255
2 F-ES Sitecore 210
3 Maciej Los 185
4 Richard MacCutchan 130
0 Sergey Alexandrovich Kryukov 1,144
1 Maciej Los 509
2 OriginalGriff 505
3 Richard MacCutchan 440
4 CHill60 415


Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 28 Feb 2012
Copyright © CodeProject, 1999-2015
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