2014-01-05 54 views
0

我有阿賈克斯ModalPopupExtender任務,我所做的一切很好,但我 點擊btnokay,因爲它一旦發生火災它因此未工作,沒有觸發的事件。如何使用Ajax ModalPopupExtender?

<asp:Panel ID="PostPanel" Style="display: none" runat="server"> 
    <div class="modalPopup"> 
     <div class="PopupBody"> 
      <p class="ads-text"> 
       Review your post first </p> 
     </div> 
     <div class="Controls"> 
      <div class="post"> 
       <asp:Button Text="OK" runat="server" ID="btnOkay" ValidationGroup="AddUserpopup" 
        OnClick="btnOkay_Click" /> 
      </div> 
     </div> 
    </div> 
</asp:Panel> 
<asp:ModalPopupExtender ID="ModelExtenderPost" runat="server" OkControlID="btnOkay" 
    TargetControlID="HiddenField22" PopupControlID="PostPanel" PopupDragHandleControlID="PopupHeader" 
    Drag="true" BackgroundCssClass="modalBackground"> 
</asp:ModalPopupExtender> 
<asp:HiddenField ID="HiddenField22" runat="server" /> 

回答

0

添加toolkitscriptmanager掌握文件或aspx文件

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" /> 
相關問題