Re: Causing a page refresh mid-method?
- From: intrader <intrader@xxxxxxxxxxxxx>
- Date: Fri, 01 Jul 2005 19:55:47 GMT
On Fri, 01 Jul 2005 10:15:27 -0700, Kieran Benton wrote:
> 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.
Nothing too elegant, I am afraid. But you can render javascript that uses
a timer to refresh the label with whatever you want.
.
- References:
- Causing a page refresh mid-method?
- From: Kieran Benton
- Causing a page refresh mid-method?
- Prev by Date: Re: Write disk warning
- Next by Date: Re: Getting at ACROBAT pdf file properties
- Previous by thread: Causing a page refresh mid-method?
- Next by thread: Re: vb6 active-x dlls in asp.net
- Index(es):
Relevant Pages
|