Jun 22, 2009, 5:14 PM
MessageBox does't show till after method
hi all,
I am trying to use the messagebox dialog to show a progress bar, it works just fine, its just that the message doesn't show till after my long process method completes, here is my code.
Thanks for the help
I am trying to use the messagebox dialog to show a progress bar, it works just fine, its just that the message doesn't show till after my long process method completes, here is my code.
protected void LoadData(object sender, AjaxEventArgs e)
{
Ext.Msg.Show(new MessageBox.Config
{
Message = "Updating database tables,please wait",
ProgressText = "Updating...",
Width = 300,
Wait = true,
WaitConfig = new ProgressBar.WaitConfig { Interval = 200 },
});
FillTables();
lblLoadStatus.Text = CountAllRecords().ToString() + " Records Were Imported";
}
is there anything wrong there? it is not showing till after the filltables method is done, which takes about 10 secs. all im wanting is the have the messagebox show right when the button is clicked so that the user knows something is going on. Thanks for the help