call postback through update panel request

I am using the update panel triggered on timer tick event which executes following code In the ShowPanel method I want to make visible another panel outside update panel. but it does not shown until after satisfying the condition the postback happens. any body have solution?

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

Answers


All I needed is to call the postback script as follows..

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

More described information is available here


Need Your Help

How to customize sphinx.ext.autosummary rst template?

python python-sphinx

Here in Sphinx's documentation it is said what those templates can be redefined.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.