0
我有我的代碼將值插入DB和插入 ModalPopupExtender顯示,當點擊OK按鈕事件火 重新加載頁面數據後工作。但我不希望所有分頁重新加載我試圖使用 更新面板但確定事件不起作用。在UpdatePanel不會按鈕
<asp:Panel ID="PostPanel" runat="server" Style="display: none;">
<div class="modalPopup">
<div class="PopupBody">
<p class="ads-text">
GO </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>
<cc1:ModalPopupExtender ID="ModelExtenderPost" OkControlID="btnOkay" runat="server"
TargetControlID="HiddenField22" PopupControlID="PostPanel" PopupDragHandleControlID="PopupHeader"
Drag="true" BackgroundCssClass="modalBackground">
</cc1:ModalPopupExtender>
<asp:HiddenField ID="HiddenField22" runat="server" />
protected void btnOkay_Click(object sender, EventArgs e)
{
Response.Redirect(Request.Url.ToString(), true);
}
否時觸發的事件點擊確定按鈕 – skdeveloper
是否添加了「EnableEventV」 alidation =「false」'在您的網頁上方? – mirza