Usability, MVC, ASP.NET

3. Oktober 2007 14:42
by Henrik Stenbæk
0 Kommentare

Matt Berseth shows ModalPopup with Multiple Cancel Buttons

3. Oktober 2007 14:42 by Henrik Stenbæk | 0 Kommentare

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.)

2. Add code to the cancel buttons:

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