Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

progress bar 3

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
Can someone please show me how to make a progress bar? When I click on the search button, while waiting for the records return, I want to show the pregress of the search.

Thanks
 
I really appreciate all the helps from you guys.
 
[tt]Kendel, if you no longer need the images I will delete them now. Thanks



Delete * from brain Where MaxLevel = "Full" and reaction = "Slow" order by StartOver
 
Go ahead delete the images. I got them all. Thanks a gain.
 
In the search page there is also a save button. The search button works as I expected. But when I click the save Button, I got this error msg.

"The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content."

It doesn't take me to the save.asp, instead it redirect me to the the result.asp

I have no idea. Does anyone know why and how to fix this.

 
This means that your sending output to the user before your redirect. You aren't allowed to do this because basically in order to do a redirect it sends a header to the client to force the client to request the address your redirecting to. If you have already sent a header (which is automatic when you output the first thing to the client) than you can't redirect.

Basically the short answer is don't output anything to the client until after you get past the redirect, or use Response.Buffer = True and don't put any Response.Flush's until after the redirect.

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
Thanks for your help. Now at least I have the idea why it behave that way. But if I turn on the buffer, I won't see the "waiting" msg.

All I'm trying to do is about the waiting msg & progress bar.

I don't have any "Response.Flush" in the pages.
 
Is there any other indide tips? Thanks
 
u can show the progress bar using Javascript if u want to .... what u can do - make a table of one row and there shud b 2 columns in that row.. make first columns color- red and the other white.. then make a loop in javascript to increase the column width dynamically..
it wud seem as if its a pregress bar but actually it has nuthing to do with the database action being performed.. u can just give the impression to the site user as if that is a real pregress bar...
Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top