I have button in page index.asp. When user clicked this button , it will go to responsepage.asp. I want to show message "Thank you" for 5 sec before redirect to showlist.asp. In other word, it is somthing like when you post topic or post any answer in this forum. YOu will see message before it will redirect you to main forum. I tried this code but it does not work. It did not show message, it just redirected to showlist.asp. I want to show message message first before redirect
This is responsepage.asp
response.write "Thanks you<br>"
Do Until (Timer() >= (timeold+5)) OR (Timer() < timeold)
I could be wring, but I think what you're trying to do won't work in .asp.
A response.redirect won't work afte rthe headers are written. If you have a response.write anywhere in the code before a reponse.redirect that will prevent the response.redirect from functioning.
I hate to say this, but if you wrote your page using .aspx (the asp.net framework) it might work as REsponse.Redirect under .net seems to function differently.
Of course you need to be on a .net server.