|
| |
|
|
hhammash
Posts: 1064 Joined: 8/19/2002 Status: offline
|
Redirect - 10/14/2002 16:14:41
Hi all, After the user submitts the form, it takes him/her to the confirmation page. On the confirmation page I put code to redirect the paqe. The redirect is working fine, but what I need is the page to pause for sometime so the user can read the submitted information then get redirected to another page. Best regards Hisham
|
|
|
|
ASPPlayground
Posts: 122 Joined: 6/25/2002 From: Toronto, Canada Status: offline
|
RE: Redirect - 10/14/2002 20:18:15
As an ASP programmer, I would suggest that you use this: <% Response.AddHeader " REFRESH" , " 10;url=http://www.yourpage.com" %>
_____________________________
Samuel Chou ASPPlayground.NET Developer
|
|
|
|
hhammash
Posts: 1064 Joined: 8/19/2002 Status: offline
|
RE: Redirect - 10/15/2002 0:15:18
Hi Samuel and Richard, So instead of using redirect, I refresh to another page. Good idea, but the question is: Technically what is the difference between redirect and refresh to another URL? Thanks a lot Hisham
|
|
|
|
ASPPlayground
Posts: 122 Joined: 6/25/2002 From: Toronto, Canada Status: offline
|
RE: Redirect - 10/15/2002 2:23:49
The method Richard suggested is equivalent to my method, the only difference being that the response.addheader (my suggestion) only adds a header and thus is invisible to your users (as it won' t show up in the HTML source). They are the same functionally, as they all tell the browser to wait for a specific amount of time before being redirected. However, the response.redirect method will send the users directly to the page you specified without the " wait" period. The meta tag equivalent to response.redirect: <META HTTP-EQUIV=Refresh CONTENT=" 0; URL=http://www.htmlhelp.com/" >
_____________________________
Samuel Chou ASPPlayground.NET Developer
|
|
|
|
Doug G
Posts: 1189 Joined: 12/29/2001 From: SoCal Status: offline
|
RE: Redirect - 10/15/2002 2:30:12
Response.redirect: When a client browser requests a page with a response.redirect, the asp code in the page runs up to the redirect. Assuming buffering is on or you haven' t sent any html from your asp page, when the redirect is encountered the web server sends an HTTP 302 Object Moved and the redirect url back to the browser, and this response causes the browser to get the new url. A meta refresh or header refresh causes the browser to get the new url after some period of time without any other web server intervention. hth
_____________________________
====== Doug G ======
|
|
|
|
hhammash
Posts: 1064 Joined: 8/19/2002 Status: offline
|
RE: Redirect - 10/15/2002 4:41:46
Hi, Thank you all for you input. Regards Hisham
|
|
|
|
Long Island Lune
Posts: 2340 Joined: 6/8/2002 From: New York Status: offline
|
RE: Redirect - 10/15/2002 22:39:47
Hisham, Hi... Just remember to give them enough time to read the message before it' s gone. Stay cool LLL
_____________________________
|
|
|
|
Long Island Lune
Posts: 2340 Joined: 6/8/2002 From: New York Status: offline
|
RE: Redirect - 10/16/2002 12:36:03
Hi Hisham my friend, I was incorrect in my last post... It should have read: " Just remember to give them enough time to read the confirmation info before you redirect them away. " Actually, doing it this way spooks me. You never know how long it could take a user to read this info before the redirect kicks in. I would place the confirmation info into a popup window. And place a " Done" button at the bottom. Connect the button to a asp redirect. This way you take them where YOU want them to go in " their own time" . On another website they posted a poll question a long time ago. It asked a question something similar like this: If presented with a popup window with a close button, how many of you would still use the X button located in the upper right hand corner??? Not one person who answered the poll said they would use the X button. And I agreed. the X button is one more step of " work" . So then, the moral of that poll was place a button and they will use it. Or... " Build a button, and they will come..." Super regards, LLL (Lune)
_____________________________
|
|
|
|
hhammash
Posts: 1064 Joined: 8/19/2002 Status: offline
|
RE: Redirect - 10/16/2002 13:22:42
Hi LLL, Thank you, It was nice to meet you again. Best regards Hisham
|
|
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
|
|
|