a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

response.redirect after x seconds

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> response.redirect after x seconds
Page: [1]
 
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

(in reply to barking mad)
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 ...

(in reply to cliffdeen)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> ASP and Database >> response.redirect after x seconds
Page: [1]
Jump to: 1





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