Home > ASP Development > Response.Redirect error

Response.Redirect error



This is giving me an expected end of statement error, and I know that the Session("TaLink") variable has a url stored in it. Any suggestions?


Code:



Response.Redirect "Response.write(Session("TaLink"))"



    
Guest


Quote:
Originally Posted by KuraofTyren
This is giving me an expected end of statement error, and I know that the Session("TaLink") variable has a url stored in it. Any suggestions?


Code:



Response.Redirect "Response.write(Session("TaLink"))"









Code:




url = Session("TaLink")
Response.Redirect url



Was this answer helpful ? Yes No   
Guest


Just use

Code:


Response.Redirect Session("TaLink")



Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by bslintx

Code:




url = Session("TaLink")
Response.Redirect url




I knew you'd pick that up pretty quickly Brian

Was this answer helpful ? Yes No   
Guest


Hmm.. I tried that and I'm getting a "a url is required" error.




Code:



Session("jubata")=http://webmail.cox.net
url = Session("jubata")
Response.Redirect url



Was this answer helpful ? Yes No   
Guest


Try

Code:


Session("jubata")="http://webmail.cox.net"



Was this answer helpful ? Yes No   
Guest


Oooh that did the trick with my test line The hard part now, is I have to figure out how to put this:




Code:



Session("TaLink")= InfoLoader.Fields("TAInfoPage")






so that the address that gets loaded here gets stored in quotes as well. Any advice on that? The one thing I tried gave me an unterminated string constant error.

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by splinters
I knew you'd pick that up pretty quickly Brian






lol....you saw it while i was editing after i posted...doh!





lol...i erased the answer to this one to cover my goof...this one's yours geoff

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by KuraofTyren
Oooh that did the trick with my test line The hard part now, is I have to figure out how to put this:




Code:



Session("TaLink")= InfoLoader.Fields("TAInfoPage")






so that the address that gets loaded here gets stored in quotes as well. Any advice on that? The one thing I tried gave me an unterminated string constant error.


You don't need to add the quotes. As long as the field from the table is of type text, what you have above will work.

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved