0
爲什麼彈出窗口有時不起作用。沒有彈出的條件。每當一個按鈕被點擊時,它必須彈出。你們認爲問題可能在哪裏?單擊按鈕時Popup不起作用。問題在哪裏? -Asp.net
謝謝,
<table id="pnlPopupAdditional" runat="server" style="display:none">
<tr>
<td>
<asp:Panel runat="server" CssClass="modalPopup">
<table width="350" height="80" class="warningPopup">
<tr>
<td>
<!-- <img src="images/warning_blue.gif" alt="Warning" /> -->
</td>
<td colspan="2" align="left" style="padding-left: 75px; padding-top: 10px;">
<asp:Literal ID="ltMessage" runat="server"></asp:Literal>
</td>
</tr>
<tr>
<td align="center" colspan="4">
<input id="btnYesAdditional" type="button" value="YES" class="popupButton" />
<input id="btnNoAdditional" type="button" value="NO" class="popupButton" />
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>
<asp:Button ID="btn" runat="server" Visible="false" />
私人無效SetAdditionalLocationMessage() { _AccountSummary AccountSummary的新= _ACC ountSummary(); accountSummary = new Merchant2()。GetAccountSummary(MerchantID);
if (accountSummary != null)
{
if (accountSummary.PackageID != (int)CommonHelper.Package.Free)
btnAdd.Visible = true;
else
btnAdd.Visible = false;
}
if (new Merchant2().IsLocationCountExceed(MerchantID))
{
string locationFee = new Merchant2().GetAdditionalLocationFee(accountSummary.PackageID).ToString();
ltMessage.Text = String.Format(ApplicationData.MSG_ADDITIONAL_LOCATION_CHARGE, locationFee);
ModalPopupExtender1.TargetControlID = "btnAdd";
ConfirmButtonExtender1.TargetControlID = "btnAdd";
}
else
{
ModalPopupExtender1.TargetControlID = "btn";
ConfirmButtonExtender1.TargetControlID = "btn";
}
//Controls_UC
保護無效btnAdd_Click(對象發件人,ImageClickEventArgs E) { MERCHANTID = CommonHelper.GetLoggedInMerchant();
string QueryString = ApplicationData.URL_MERCHANT_COMPANY_PAYMENT + "?MerchantProfilePages";
Response.Redirect(QueryString);
我們需要在能夠猜測原因之前查看彈出窗口的代碼。 – Oded 2010-08-05 18:06:23
「有時」是隨機的,還是某些用戶或瀏覽器始終失敗?瀏覽器中是否禁用彈出窗口阻止? – Justin 2010-08-05 18:06:35
實際上,對於某些用戶來說,它總是彈出。但對於一些用戶來說,它不會隨時隨地。讓我分享一下代碼。 – Ram 2010-08-05 18:08:16