473,385 Members | 1,461 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

.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%>


Jul 19 '05 #1
6 2036
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" <ja***@catamaranco.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
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%>

Jul 19 '05 #2
jason wrote on 07 aug 2003 in microsoft.public.inetserver.asp.general:
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%>


Response.redirect is serverside code and can NEVER have HTML.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3
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" <ja***@catamaranco.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
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%>

Jul 19 '05 #4
Ahhhh - that probably explains it...

Thanks
Jason
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
jason wrote on 07 aug 2003 in microsoft.public.inetserver.asp.general:
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%>


Response.redirect is serverside code and can NEVER have HTML.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 19 '05 #5
Thanks!
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Oh*************@TK2MSFTNGP10.phx.gbl...
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=" & Server.URLEncode(email_address) 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" <ja***@catamaranco.com> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl...
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" <ja***@catamaranco.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
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%>



Jul 19 '05 #6
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%>

-----Original Message-----
I'm having trouble incantenating this string what is the best way to do thisif the string is extremely long especially for response.redirect...
I tried switching between asp and html to make it easier but I pick upsyntax errors when I do this...

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


.

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Damo | last post by:
Could someone please help me. I am a newbie at PHP. I downloaded formail.php Version 5.0 from Jacks scripts( http://www.dtheatre.com/scripts/ )and changed the required areas to my email address and...
2
by: D. Nii | last post by:
Hi there, I have a web application that recently got redesigned and now makes use of Response.Redirect . The "new" application is hosted on Win2000 and works for all kinds of clients using IE...
4
by: TomT | last post by:
Hi.. I'm redirecting users to another page using: response.redirect("newpage.asp") this works... But I need to add a variable to the page specified.. IE: newpage.asp?id=JobID
1
by: Peter Kirk | last post by:
Hi there I have a program written by another company (it's a "web control" which returns a web-page: can I compare this to a servlet in the Java world?), which they think is causing problems on...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
4
by: Dot net work | last post by:
I have noticed that this: Response.Redirect("/MyLocalDirectory/MyPage.aspx") seems to be a lot quicker than this: Response.Redirect(sDirectoryString & "MyPage.aspx") In local...
4
by: Matt MacDonald | last post by:
Hi everyone, I'm seeing this problem more and more often. Not sure if it's me or IIS or both. Here's the general scenario: I have an ASP.net app that is running and I try to navigate to...
5
by: =?Utf-8?B?d2ViZ3V5QGNvbW11bml0eS5ub3NwYW0=?= | last post by:
We have been running into some problems where using Response.Redirect causes the page to hang and it never actually redirects. Here's the scenario: User opens the page, selects an item from the...
12
by: =?Utf-8?B?cGI=?= | last post by:
I am having trouble doing a redirect in an async asp.net implemention. Most of the time it works, but when it doesn't it just "hangs", the browser never gets any return page. If I run it under the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.