|
-
Jun 23rd, 2003, 07:47 AM
#1
Thread Starter
Lively Member
Displaying message before database connection
Hi,
I'm fairly new to ASP so if this is really simple I apologize in advance for my stupidity.
At the top of my ASP code a connection is made to a database and some data is pulled back. All I need to do is put a message at the top saying Please wait but I can't seem to get the text to appear before the database code executes. In VB I would issue a simple .refresh on the label control but there doesnt seem to be a similar refresh function in ASP.
Any ideas?
Thanks.
-
Jun 23rd, 2003, 08:02 AM
#2
By Default in asp, the buffer object is set to false, that means the processed html is only returned when the execution is competed. So thats why you dont get to see your wait message.
You can set the buffer to true buy putting response.buffer = true at the top of your page.
then
response.write "whaterverere"
'more response.write
response.fulsh
Response.flush will now force the asp page to print whatever is in the buffer.
Hope this helps.
Danial
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Jun 23rd, 2003, 08:13 AM
#3
Thread Starter
Lively Member
Excellent! that did the trick!
Thanks a lot!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|