C# 每次回发时,gridview标题内的气泡弹出扩展程序都会显示
我是气球弹出扩展器的新手。我为Gridview标题提供了一个气球弹出扩展程序, 这是我的密码。我不知道我错在哪里。当我点击页面上的一个按钮时,气球弹出扩展器出现在页面的左上角,它出现在页面上任何按钮引起的每次回发中。我不知道如何隐藏它和文档。getElementById(“blnHeaderRowA”)提供空引用。有什么解决办法吗?C# 每次回发时,gridview标题内的气泡弹出扩展程序都会显示,c#,asp.net,webforms,balloon-tip,C#,Asp.net,Webforms,Balloon Tip,我是气球弹出扩展器的新手。我为Gridview标题提供了一个气球弹出扩展程序, 这是我的密码。我不知道我错在哪里。当我点击页面上的一个按钮时,气球弹出扩展器出现在页面的左上角,它出现在页面上任何按钮引起的每次回发中。我不知道如何隐藏它和文档。getElementById(“blnHeaderRowA”)提供空引用。有什么解决办法吗? 提前感谢嗨,请将此添加到外部加载页面!IsPostBack ScriptManager.RegisterStartupScript(Page, Page.GetT
提前感谢嗨,请将此添加到外部加载页面!IsPostBack
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "hidePopup","document.getElementById('"+((Label)GvR045F.HeaderRow.FindControl("lblHeaderRowPopupA")).ClientID+"').BalloonPopupControlBehavior.showPopup();document.getElementById('"+((Label)GvR045F.HeaderRow.FindControl("lblHeaderRowPopupA")).ClientID+"').BalloonPopupControlBehavior.hidePopup();",true);
谢谢Hi,我创建了一个变通方法,在每次回发时依次调用showPopup()和hidePopup(),每次回发时它都会消失:p
function omo(obj) {
if (obj != null) {
obj.hidePopup();
}
}
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "hidePopup","document.getElementById('"+((Label)GvR045F.HeaderRow.FindControl("lblHeaderRowPopupA")).ClientID+"').BalloonPopupControlBehavior.showPopup();document.getElementById('"+((Label)GvR045F.HeaderRow.FindControl("lblHeaderRowPopupA")).ClientID+"').BalloonPopupControlBehavior.hidePopup();",true);