2011-05-30 23 views
0

嗨,我仍然不知道在哪里的问题,我有: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甚至不捕捉此功能中的断点

回答

0

哦,我是如此完美,因为这个进度条是在更新面板。我一直在与这1小时战斗,现在从堆栈溢出,并找到解决方案。