Causing a page refresh mid-method?
- From: "Kieran Benton" <kieranbenton@xxxxxxxxxxx>
- Date: 1 Jul 2005 10:15:27 -0700
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.
.
- Follow-Ups:
- Re: Causing a page refresh mid-method?
- From: intrader
- Re: Causing a page refresh mid-method?
- Prev by Date: Re: Carrying form data between two pages
- Next by Date: Re: vb6 active-x dlls in asp.net
- Previous by thread: AddHeader is not working
- Next by thread: Re: Causing a page refresh mid-method?
- Index(es):
Relevant Pages
|