Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:28 AM
jason
Guest
 
Posts: n/a
Default .Redirect - Concant. problems

I'm having trouble incantenating this string what is the best way to do this
if the string is extremely long especially for response.redirect...

I tried switching between asp and html to make it easier but I pick up
syntax errors when I do this...



<%Response.redirect
"http://opt-in.verticalresponse.com/?"%>fid=20351f4764&email_address=&first_
name=&last_name=&optin=1%>




  #2  
Old July 19th, 2005, 07:28 AM
jason
Guest
 
Posts: n/a
Default Re: .Redirect - Concant. problems

Sorry - this would make more sense:

<%Response.redirect
"http://opt-in.verticalresponse.com/?"%>fid=20351f4764&email_address=<%=emai
l_address%>&first_name=<%=first_name%>&last_name=< %=last_name%>&optin=1



"jason" <jason@catamaranco.com> wrote in message
news:uWHieXRXDHA.2484@TK2MSFTNGP09.phx.gbl...[color=blue]
> I'm having trouble incantenating this string what is the best way to do[/color]
this[color=blue]
> if the string is extremely long especially for response.redirect...
>
> I tried switching between asp and html to make it easier but I pick up
> syntax errors when I do this...
>
>
>
> <%Response.redirect
>[/color]
"http://opt-in.verticalresponse.com/?"%>fid=20351f4764&email_address=&first_[color=blue]
> name=&last_name=&optin=1%>
>
>
>
>[/color]


  #3  
Old July 19th, 2005, 07:28 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: .Redirect - Concant. problems

jason wrote on 07 aug 2003 in microsoft.public.inetserver.asp.general:
[color=blue]
> I'm having trouble incantenating this string what is the best way to
> do this if the string is extremely long especially for
> response.redirect...
>
> I tried switching between asp and html to make it easier but I pick up
> syntax errors when I do this...
>
>
>
> <%Response.redirect
> "http://opt-in.verticalresponse.com/?"%>fid=20351f4764&email_address=&f
> irst_ name=&last_name=&optin=1%>[/color]

Response.redirect is serverside code and can NEVER have HTML.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
  #4  
Old July 19th, 2005, 07:28 AM
Ray at
Guest
 
Posts: n/a
Default Re: .Redirect - Concant. problems

You're closing your ASP tag in the middle of your URL. Do you mean to do
that?


<% Response.Redirect
"http://opt-in.verticalresponse.com/?fid=20351f4764&email_address=&first_nam
e=&last_name=&optin=1" %>

Or, if there really is supposed to be a %> in that URL, you can
Server.URLEncode it:

<% Response.Redirect
Server.URLEncode("http://opt-in.verticalresponse.com/?%>fid=20351f4764&email
_address=&first_name=&last_name=&optin=1") %>

But I doubt that's what you want.

Ray at work


"jason" <jason@catamaranco.com> wrote in message
news:uWHieXRXDHA.2484@TK2MSFTNGP09.phx.gbl...[color=blue]
> I'm having trouble incantenating this string what is the best way to do[/color]
this[color=blue]
> if the string is extremely long especially for response.redirect...
>
> I tried switching between asp and html to make it easier but I pick up
> syntax errors when I do this...
>
>
>
> <%Response.redirect
>[/color]
"http://opt-in.verticalresponse.com/?"%>fid=20351f4764&email_address=&first_[color=blue]
> name=&last_name=&optin=1%>
>
>
>
>[/color]


  #5  
Old July 19th, 2005, 07:28 AM
jason
Guest
 
Posts: n/a
Default Re: .Redirect - Concant. problems

Ahhhh - that probably explains it...

Thanks
Jason
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
news:Xns93D0D6AB76AD2eejj99@194.109.133.29...[color=blue]
> jason wrote on 07 aug 2003 in microsoft.public.inetserver.asp.general:
>[color=green]
> > I'm having trouble incantenating this string what is the best way to
> > do this if the string is extremely long especially for
> > response.redirect...
> >
> > I tried switching between asp and html to make it easier but I pick up
> > syntax errors when I do this...
> >
> >
> >
> > <%Response.redirect
> > "http://opt-in.verticalresponse.com/?"%>fid=20351f4764&email_address=&f
> > irst_ name=&last_name=&optin=1%>[/color]
>
> Response.redirect is serverside code and can NEVER have HTML.
>
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)[/color]


  #6  
Old July 19th, 2005, 07:28 AM
jason
Guest
 
Posts: n/a
Default Re: .Redirect - Concant. problems

Thanks!


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OhvQXfRXDHA.388@TK2MSFTNGP10.phx.gbl...[color=blue]
> You're trying to interlace ASP in ASP. My advice is to simplify things as
> much as possible until it's all second nature.
>
> <%
>
> sRedirect = "http://opt-in.verticalresponse.com/?fid=20351f4764"
> sRedirect = sRedirect & "&email_address=" &[/color]
Server.URLEncode(email_address)[color=blue]
> sRedirect = sRedirect & "&first_name=" & Server.URLEncode(first_name)
> sRedirect = sRedirect & "&last_name=" & Server.URLEncode(last_name)
> sRedirect = sRedirect & "&optin=1"
>
>
> Response.WRITE sRedirect
>
> ''uncomment this after you understand what happened
> 'Response.Redirect sRedirect
>
> %>
>
> Ray at work
>
> "jason" <jason@catamaranco.com> wrote in message
> news:OKg29YRXDHA.1620@TK2MSFTNGP12.phx.gbl...[color=green]
> > Sorry - this would make more sense:
> >
> > <%Response.redirect
> >[/color]
>[/color]
"http://opt-in.verticalresponse.com/?"%>fid=20351f4764&email_address=<%=emai[color=blue][color=green]
> > l_address%>&first_name=<%=first_name%>&last_name=< %=last_name%>&optin=1
> >
> >
> >
> > "jason" <jason@catamaranco.com> wrote in message
> > news:uWHieXRXDHA.2484@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > I'm having trouble incantenating this string what is the best way to[/color][/color][/color]
do[color=blue][color=green]
> > this[color=darkred]
> > > if the string is extremely long especially for response.redirect...
> > >
> > > I tried switching between asp and html to make it easier but I pick up
> > > syntax errors when I do this...
> > >
> > >
> > >
> > > <%Response.redirect
> > >[/color]
> >[/color]
>[/color]
"http://opt-in.verticalresponse.com/?"%>fid=20351f4764&email_address=&first_[color=blue][color=green][color=darkred]
> > > name=&last_name=&optin=1%>
> > >
> > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #7  
Old July 19th, 2005, 07:29 AM
MePadre
Guest
 
Posts: n/a
Default .Redirect - Concant. problems

I think your string should look more like this. By
closing the ASP with the %> the response.redirect is not
getting the entire querystring


<% Response.redirect "http://opt-in.verticalresponse.com/?
fid=20351f4764&email_address=&first_name=&last_nam e=&optin=
1%>

[color=blue]
>-----Original Message-----
>I'm having trouble incantenating this string what is the[/color]
best way to do this[color=blue]
>if the string is extremely long especially for[/color]
response.redirect...[color=blue]
>
>I tried switching between asp and html to make it easier[/color]
but I pick up[color=blue]
>syntax errors when I do this...
>
>
>
><%Response.redirect
>"http://opt-in.verticalresponse.com/?"%
>fid=20351f4764&email_address=&first_
>name=&last_name=&optin=1%>
>
>
>
>
>.
>[/color]
 

Bookmarks


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

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles