K
Kieran Benton
I've got a situation where I would like to make a label control visible
whilst a few-seconds long process runs, something along the lines of
"Please wait...". At the moment this all occurs inside the postback
section of the page load event as:
private void Page_Load(object sender, System.EventArgs e)
{
if(!this.IsPostBack)
{
<...>
}
else
{
<...>
labLookingUp.Visible = true;
string postcode = g.LatitudeLongitudeToPostcode(lat,lon); // The long
running process!!
labLookingUp.Visible = false;
<...>
}
}
But no page update occurs between the Visible = true and Visible =
false, resulting in the control never becoming visible to the user. Is
there any elegant way around this? Cheers.
whilst a few-seconds long process runs, something along the lines of
"Please wait...". At the moment this all occurs inside the postback
section of the page load event as:
private void Page_Load(object sender, System.EventArgs e)
{
if(!this.IsPostBack)
{
<...>
}
else
{
<...>
labLookingUp.Visible = true;
string postcode = g.LatitudeLongitudeToPostcode(lat,lon); // The long
running process!!
labLookingUp.Visible = false;
<...>
}
}
But no page update occurs between the Visible = true and Visible =
false, resulting in the control never becoming visible to the user. Is
there any elegant way around this? Cheers.