Redirect (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


hhammash -> 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




Richard Dudley -> RE: Redirect (10/14/2002 17:18:07)

You want a REFRESH:

<META HTTP-EQUIV=Refresh CONTENT=" 10; URL=http://www.htmlhelp.com/" > 


More info:
http://www.htmlhelp.com/reference/html40/head/meta.html




ASPPlayground -> 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"
%>




hhammash -> 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 -> 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/" >




Doug G -> 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




hhammash -> RE: Redirect (10/15/2002 4:41:46)

Hi,

Thank you all for you input.

Regards
Hisham




Long Island Lune -> 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





hhammash -> RE: Redirect (10/16/2002 2:06:00)

Hi LLL,


quote:

ORIGINAL: hhammash

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



Which message? and where to go? [:D]

Best regards
Hisham




Long Island Lune -> 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 -> RE: Redirect (10/16/2002 12:50:39)

Hi LLL,

[:D][:D][:D]I thought you want me to give time to the persons who answer my post, I said to myself, well they have all the time they need. [:)][:)]

Now, you are completely right. But, in my case no need for the button, I will post only five words.

The record was updated successfully

I will give them 10 seconds then take them back to the DRW where they can see the update.

In other situations I agree with you 100% and put the stamp too. It is very important to think about the user satisfaction more than thinking about dazzeling him/her with automation.

If the user is annoyed he/she will never visit your site again.

Sometimes as a user, when I visit sites that annoy me with popups, buttonless windows to force me to read something ...etc, I never go back again.

Thank you for you input my friend.

Best regards
Hisham




Long Island Lune -> RE: Redirect (10/16/2002 13:00:54)

Hisham,

Hi...

quote:

Sometimes as a user, when I visit sites that annoy me with popups, buttonless windows to force me to read something ...etc, I never go back again.


You are 100% correct. Me too. [:)]

Regards,
LLL




hhammash -> RE: Redirect (10/16/2002 13:22:42)

Hi LLL,

Thank you,

It was nice to meet you again.

Best regards
Hisham




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
6.152344E-02