在更新面板中从代码后面调用Java脚本函数

问题描述

| 嗨,我仍然不知道我的问题在哪里:
<input id=\"hiddenFieldProgress\" type=\"hidden\" value=\"12\" />
            <asp:UpdatePanel ID=\"UpdatePanel2\" runat=\"server\">

<asp:UpdatePanel>
<ContentTemplate>
                <script type=\"text/javascript\">
                                         alert(\"warning\");
                        var hiddenFieldProgress = document.getElementById(\'hiddenFieldProgress\').value;
                        $find(\'MainContent_ProgressControl3\').set_percentage(hiddenFieldProgress);
                        }
                </script>

                <pb:ProgressControl ID=\"ProgressControl3\" runat=\"server\" Mode=\"Manual\" Width=\"200px\" />
                <asp:Timer ID=\"Timer1\" runat=\"server\" Interval=\"3000\" ontick=\"CheckIfQueryAnalyzerIsBussy\"></asp:Timer>
                </ContentTemplate>
            </asp:UpdatePanel>
并在后面的代码
const string script = @\"onAbsoluteradioClick();\";
            ScriptManager.RegisterClientScriptBlock(this,typeof(UpdatePanel),\"jscript\",script,true);
而且每次调用计时器功能时,我的进度条都为0,警报正常工作,但是Firefox在此功能中甚至没有捕捉断点     

解决方法

        哦,我很惊讶,因为此进度条位于更新面板中。我一直在与那1 h进行斗争,现在从堆栈溢出中查找并找到了解决方案。