Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.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# 通过更新面板请求回拨_C#_Asp.net_Ajax_Updatepanel - Fatal编程技术网

C# 通过更新面板请求回拨

C# 通过更新面板请求回拨,c#,asp.net,ajax,updatepanel,C#,Asp.net,Ajax,Updatepanel,我正在使用更新面板触发定时器滴答事件,它执行以下代码 在ShowPanel方法中,我想使更新面板外的另一个面板可见。但只有在满足条件后才会显示回发。 有人有办法吗 protected void timerT_Tick(object sender, EventArgs e) { if (condition) { ShowPanel(); } } 我所需要做的就是如下调用回发脚本 protected vo

我正在使用更新面板触发定时器滴答事件,它执行以下代码 在ShowPanel方法中,我想使更新面板外的另一个面板可见。但只有在满足条件后才会显示回发。 有人有办法吗

    protected void timerT_Tick(object sender, EventArgs e)
    {
       if (condition)
        {
            ShowPanel();
        }
    }

我所需要做的就是如下调用回发脚本

protected void timerT_Tick(object sender, EventArgs e)
{
   if (condition)
    {
        string jv = "__doPostBack('__Page', 'MyCustomArgument');";
        ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "postback",jv, true);
        ShowPanel();
    }
}

您的意思是希望面板在1之后可见吗。条件=真和2。正在发生回发?是的,这可能是解决方案,但回发不是要显示的条件,当前需要回发才能显示面板。