Reputation: 757
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();
}
}
Upvotes: 2
Views: 276
Reputation: 757
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
Upvotes: 1