【发布时间】:2015-05-31 09:05:10
【问题描述】:
我在 listviewlist 中使用<img> 标签。当我将鼠标悬停在此按钮上时,标题出现然后消失。当我在关闭弹出窗口后单击显示模式弹出窗口的按钮时,标题不会消失。见附图。我怎样才能让标题消失。我在更新面板中使用 listviewlist。
ASPX 代码:
<td class="text-center">
<div id="dvTC" runat="server" style="width:18px;" class="mv-action">
<asp:LinkButton ID="lnkTC" CommandArgument='<%# Eval("TermsAndCondition") %>'
CommandName="TermsCondition" runat="server">
<img src="../../../Images/MuslimVoucher/lupe.png" width="14" height="14"
alt="magnifier" title="Terms & Conditions" />
</asp:LinkButton>
</div>
</td>
显示弹出服务器端代码
protected void lvGiftVoucher_OnItemCommand(object sender, ListViewCommandEventArgs e)
{
if (e.CommandName == "TermsCondition")
this.ModalPopupTC.Show();
}
【问题讨论】:
-
显示弹窗代码
-
` protected void lvGiftVoucher_OnItemCommand(object sender, ListViewCommandEventArgs e) { if (e.CommandName == "TermsCondition") { this.ModalPopupTC.Show(); } } `
-
显示不包含在 cmets 中的 ModalPopupTc 的代码。
-
添加了弹出代码.. 谢谢