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