473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Causing a page refresh mid-method?

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.

Nov 19 '05 #1
1 876
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.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Scott | last post by:
I have a clickable graph that resides on page 1. If user clicks a data point on the graph, the page runs again yeilding a 2nd graph that shows a more detailed graph. Problem is, I have a...
15
by: wk6pack | last post by:
Hi, I have a problem and not quite how to go about solving it. I have a form written in asp. I wish to submit the form and have the server return back to the same page without actually...
0
by: chobin | last post by:
Hi all. I've a terrible question. I've to build one XML page (based on a xml schema) that implements a dynamic database. In particular, I would declare something like this: <?xml version="1.0"...
9
by: PK9 | last post by:
I'm having an issue with the "Refresh" of an asp.net page. The refresh is actually calling my last onClick event. I thought that asp.net was supposed to be stateless in that it shouldn't...
11
by: Doug Laidlaw | last post by:
I know that this thread is inappropriate for this list, but c.i.w.a.servers is dead at my address. Google has been around to my site twice this month and downloaded almost a GB, putting me over...
6
by: acord | last post by:
Hi, In a html page, I don't know how to load in a php page from javascript. I've already defined a <div id="treemenu"> in the html page. The executed content from the php script is supposed...
6
by: Vear | last post by:
Hi, I have a web page that is in a master page. The user fills in the page and at the bottom I have a link for terms which when they click is causing post back. Here is the code. Is there a way...
3
by: Chris Tomlinson | last post by:
Hi all, I hope someone is able to help me out with a small problem with this page: http://www.superhighstreet.com/George-Street-Richmond/index.shtml I have a small iframe (mid-right) with an...
8
by: T. Wintershoven | last post by:
Hi all, Is there a simple way in php to reload a page coded within an if statement.(see code below) It's very important that the session stays intact. The filename is RCStudent.php ...
3
by: Tom | last post by:
I have a PHP 4.4.7, MySql 5.0 and I.E. 7. My PHP queries the database and renders the info into html forms. Submitting the forms manipulates the data. Now, the problem is that the browsers are...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.