|
| |
|
|
barking mad
Posts: 278 Joined: 12/6/2002 From: Out in the sticks, UK Status: offline
|
response.redirect after x seconds - 11/8/2005 16:41:43
how can I use response.redirect after say 5 seconds I have posted info to a webpage which confirms the database has been updated but now I need to display message eg "database updated" and then redirect after say 5 seconds I'm using response.redirect because I need to pass back a load of parameters too (eg db record id, name etc etc) I can't use the meta refresh because the db display, form, processing and confirmtaion are all on the same webpage (I'm looping through the same page passing different task numbers to do different things) thanks
_____________________________
The more I ask, the more I learn, the more I' m confused, therefore the more I ask ...
|
|
|
|
cliffdeen
Posts: 155 Joined: 4/12/2004 From: Mckinney, TX Status: offline
|
RE: response.redirect after x seconds - 11/8/2005 17:32:28
perhaps like so: Response.AddHeader "REFRESH", "0;URL=HTTP://Your server name/Your file name.ASP?dbtablefieldname="& variablename The 0 after "refresh" is the time in seconds before going to the new page. 0 is immediate. If you want to display the last record you can pass the parameter to the new page via the dbtablefieldname= & variablename by declaring a variable on the submit page and then passing it to the display page. if not just leave everything blank after the ? and on the confirm/display page - write the message you want the users to see. I use the response redirect with if statements - so I can direct to different pages depending on the value I want to store - like - if dollar > 1000 then Response.AddHeader "REFRESH", "0;URL=HTTP://Your server name/bigspender.ASP?dbtablefieldname="& variablename
_____________________________
Cliff
|
|
|
|
barking mad
Posts: 278 Joined: 12/6/2002 From: Out in the sticks, UK Status: offline
|
RE: response.redirect after x seconds - 11/8/2005 20:34:55
thanks cliff jobs-a-good-un!
_____________________________
The more I ask, the more I learn, the more I' m confused, therefore the more I ask ...
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|