views:

43

answers:

0

Using a ModalPopupExtender to display context help text on a panel. Is there a way to dismiss the popup either by hitting the escape key or clicking on the panel?

The code in question:

<asp:Button id="RoleTypeHelpButton" runat="server" 
     CssClass="Gs3Button" Text="?" OnClientClick="return false;" />
<act:ModalPopupExtender id="RoleTypeHelpPopupExtender" runat="server" 
     PopupControlID="RoleTypeHelpPopup" TargetControlID="RoleTypeHelpButton" 
     BackgroundCssClass="ModalPopupBackground" />
<asp:Panel id="RoleTypeHelpPopup" runat="server" CssClass="HelpPopup">
  <p class="HelpPopupText">
    <asp:Localize id="RoleTypeHelpLocalized" runat="server" 
         Text='<%$ Resources:  GS3, RoleMgmtRoleTypeHelpLocalized %>' />
  </p>
</asp:Panel>

Thanks in Advance!