Home » snippets

Matt Berseth shows ModalPopup with Multiple Cancel Buttons

3. October 2007 by Administrator 0 Comments

based on: http://mattberseth.com/blog/2007/10/modalpopup_with_multiple_cance.html

1. Add BehaviorID to the Popupextender:

<cc1:ModalPopupExtender BehaviorID="mdlPop" ..

(from Ajax.asp.net: BehaviorID: In cases where you would like to access the client-side behavior for your extender from script code in the client, you can set this BehaviorID to simplify the process.)

progress.gif  

progress.gif  

Hej fra mig
 

Hej fra mig
  

~/galleries/Kenya/05-22.jpg   ~/galleries/Kenya/06-06.jpg   ~/galleries/Kenya/07-09.jpg   ~/galleries/Kenya/15-30.jpg   ~/galleries/Kenya/18-02.jpg   ~/galleries/Kenya/21-01.jpg  
~/galleries/Kenya/23-01.jpg  

 

/galleries/Kenya/05-22.jpg   /galleries/Kenya/06-06.jpg   /galleries/Kenya/07-09.jpg  
/galleries/Kenya/15-30.jpg   /galleries/Kenya/18-02.jpg   /galleries/Kenya/21-01.jpg  
/galleries/Kenya/23-01.jpg  
  

2. Add code to the cancel buttons:

.. OnClientClick="$find('mdlPop').hide();return false;" ..

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Comments