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.
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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.