Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 每次回发时,gridview标题内的气泡弹出扩展程序都会显示_C#_Asp.net_Webforms_Balloon Tip - Fatal编程技术网

C# 每次回发时,gridview标题内的气泡弹出扩展程序都会显示

C# 每次回发时,gridview标题内的气泡弹出扩展程序都会显示,c#,asp.net,webforms,balloon-tip,C#,Asp.net,Webforms,Balloon Tip,我是气球弹出扩展器的新手。我为Gridview标题提供了一个气球弹出扩展程序, 这是我的密码。我不知道我错在哪里。当我点击页面上的一个按钮时,气球弹出扩展器出现在页面的左上角,它出现在页面上任何按钮引起的每次回发中。我不知道如何隐藏它和文档。getElementById(“blnHeaderRowA”)提供空引用。有什么解决办法吗? 提前感谢嗨,请将此添加到外部加载页面!IsPostBack ScriptManager.RegisterStartupScript(Page, Page.GetT

我是气球弹出扩展器的新手。我为Gridview标题提供了一个气球弹出扩展程序, 这是我的密码。我不知道我错在哪里。当我点击页面上的一个按钮时,气球弹出扩展器出现在页面的左上角,它出现在页面上任何按钮引起的每次回发中。我不知道如何隐藏它和文档。getElementById(“blnHeaderRowA”)提供空引用。有什么解决办法吗?


提前感谢

嗨,请将此添加到外部加载页面!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);