Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 7th, 2005, 12:55 AM   #1
sham
Newbie
 
Join Date: Mar 2005
Posts: 29
Rep Power: 0 sham is on a distinguished road
I am not clear about Response.Redirect method.Can anybody tell me the significance of

I am not clear about Response.Redirect method.Can anybody tell me the significance of it?
sham is offline   Reply With Quote
Old May 7th, 2005, 1:01 AM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
The HTTP protocol has a Redirect header that basically says "Go here. Now". It's another way to forward people to a page, much like meta refresh. However, I believe that a redirect occurs immediately without the possibility of a "You're being redirected" message.
Dameon is offline   Reply With Quote
Old May 9th, 2005, 4:15 AM   #3
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
The redirect in java will push you to the new page, but also continues processing the rest of the java class, might work the same in ASP.
Berto is offline   Reply With Quote
Old May 9th, 2005, 8:42 AM   #4
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
basically it one argument, a URL. which is sent in the form of a HTTP header ( "Location: {URL}" ) redirecting the browser to that page.
__________________

tempest is offline   Reply With Quote
Old May 29th, 2005, 11:54 PM   #5
Ashok
Newbie
 
Join Date: May 2005
Posts: 8
Rep Power: 0 Ashok is on a distinguished road
if u clicks a url which will open page2.asp and page2.asp contains the folling code
<%
Response.Redirect ("Page3.asp")
%>
then the page3.asp will be diplayed on the brower.
Ashok is offline   Reply With Quote
Old Jul 10th, 2005, 2:30 PM   #6
PhillipH
Newbie
 
Join Date: Jul 2005
Posts: 9
Rep Power: 0 PhillipH is on a distinguished road
note that any code before the redirect line is processed first. its a good way to move a user away from a page that executes code that needs to be done just once, and stops the user refreshing the screen and running the code again.
__________________
Phillip Harrison
http://www.onestop-webdesign.com
PhillipH is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:37 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC