473,320 Members | 1,572 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,320 software developers and data experts.

display html before page_load?

Hi.

I have a web page which is running a stored procedure. This page has a
graphic on it so the user knows something is running and the page is
not frozen.

This query runs for approx 40 seconds. I would like to be able to
display the HTML (graphic) before running this sproc. As it is right
now, the page just sits blank until the stored procedure is done.
After the procedure runs it redirects it to another page.

Is there somewhere else besides "Page_Load" where I can put the call to
this sproc that it will run it after the HTML has been displayed?

Thanks!
- Gary

Aug 17 '06 #1
3 1552
Well, when HTML has been output to the client I think it's already too late,
but if you just use Response.Write() (in good, ol' ASP-style) and
Response.Flush(), you can print a message to the user before starting the
SP. However, after the initial output, the final redirect probably won't
work...

Good luck :-)

Regards,
Nils Magnus

<gl****@yahoo.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
Hi.

I have a web page which is running a stored procedure. This page has a
graphic on it so the user knows something is running and the page is
not frozen.

This query runs for approx 40 seconds. I would like to be able to
display the HTML (graphic) before running this sproc. As it is right
now, the page just sits blank until the stored procedure is done.
After the procedure runs it redirects it to another page.

Is there somewhere else besides "Page_Load" where I can put the call to
this sproc that it will run it after the HTML has been displayed?

Thanks!
- Gary

Aug 17 '06 #2
page.buffer = false.

However, be really careful to check the resultant html. You could easily
end up with an invalid HTML doc.

"gl****@yahoo.com" wrote:
Hi.

I have a web page which is running a stored procedure. This page has a
graphic on it so the user knows something is running and the page is
not frozen.

This query runs for approx 40 seconds. I would like to be able to
display the HTML (graphic) before running this sproc. As it is right
now, the page just sits blank until the stored procedure is done.
After the procedure runs it redirects it to another page.

Is there somewhere else besides "Page_Load" where I can put the call to
this sproc that it will run it after the HTML has been displayed?

Thanks!
- Gary

Aug 17 '06 #3
See the Chapter 3 examples at :

http://www.daveandal.net/books/6744/samples.aspx

You can adapt one of them to do what you want to do.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<gl****@yahoo.comwrote in message news:11*********************@m79g2000cwm.googlegro ups.com...
Hi.

I have a web page which is running a stored procedure. This page has a
graphic on it so the user knows something is running and the page is
not frozen.

This query runs for approx 40 seconds. I would like to be able to
display the HTML (graphic) before running this sproc. As it is right
now, the page just sits blank until the stored procedure is done.
After the procedure runs it redirects it to another page.

Is there somewhere else besides "Page_Load" where I can put the call to
this sproc that it will run it after the HTML has been displayed?

Thanks!
- Gary

Aug 17 '06 #4

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

Similar topics

2
by: anthonysmales | last post by:
I have created a web-service which returns a line of HTML. I have created a web-application which calls the web-service and then sets the Label1.Text property to the output of the web-service, in...
3
by: VMI | last post by:
In my web app, how can I display an XML file in another browser window? Can this be done with C#? Thanks.
5
by: David Elliott | last post by:
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying...
6
by: Roy Chastain | last post by:
I have the following simple aspx page hosted on a Win2k server with version 1.0 of the framework <%@ Page Language="C#" debug="true" %> <script runat="server" language="C#"> void Page_Load...
2
by: Benedict Teoh | last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit...
1
by: tfs | last post by:
I have a word file stored in an SQL database and am trying to read and display on my ASP.Net page. It seems to work OK as far as reading and displaying on the page, but it is not displaying as a...
1
by: Jason Chan | last post by:
Some chinese characters data (in Big5 encoding) is stored in database. I tried to display the data in an aspx but the characters cannot display correctly. I tried anything I think is related: -...
3
by: AG | last post by:
Below is code (slightly modified and converted to VB) that was provided to me in response to another post. I am using it to demonstrate another problem. In order for paging and other features to...
14
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So,...
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
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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
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.