473,721 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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.redire ct...

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

<%Response.redi rect
"http://opt-in.verticalresp onse.com/?"%>fid=20351f4 764&email_addre ss=&first_
name=&last_name =&optin=1%>


Jul 19 '05 #1
6 2048
Sorry - this would make more sense:

<%Response.redi rect
"http://opt-in.verticalresp onse.com/?"%>fid=20351f4 764&email_addre ss=<%=emai
l_address%>&fir st_name=<%=firs t_name%>&last_n ame=<%=last_nam e%>&optin=1

"jason" <ja***@catamara nco.com> wrote in message
news:uW******** ******@TK2MSFTN GP09.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.redire ct...

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

<%Response.redi rect
"http://opt-in.verticalresp onse.com/?"%>fid=20351f4 764&email_addre ss=&first_ name=&last_name =&optin=1%>

Jul 19 '05 #2
jason wrote on 07 aug 2003 in microsoft.publi c.inetserver.as p.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.redire ct...

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

<%Response.redi rect
"http://opt-in.verticalresp onse.com/?"%>fid=20351f4 764&email_addre ss=&f
irst_ name=&last_name =&optin=1%>


Response.redire ct 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.Redire ct
"http://opt-in.verticalresp onse.com/?fid=20351f4764 &email_address= &first_nam
e=&last_name=&o ptin=1" %>

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

<% Response.Redire ct
Server.URLEncod e("http://opt-in.verticalresp onse.com/?%>fid=20351f47 64&email
_address=&first _name=&last_nam e=&optin=1") %>

But I doubt that's what you want.

Ray at work
"jason" <ja***@catamara nco.com> wrote in message
news:uW******** ******@TK2MSFTN GP09.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.redire ct...

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

<%Response.redi rect
"http://opt-in.verticalresp onse.com/?"%>fid=20351f4 764&email_addre ss=&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******** ************@19 4.109.133.29...
jason wrote on 07 aug 2003 in microsoft.publi c.inetserver.as p.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.redire ct...

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

<%Response.redi rect
"http://opt-in.verticalresp onse.com/?"%>fid=20351f4 764&email_addre ss=&f
irst_ name=&last_name =&optin=1%>


Response.redire ct 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******** *****@TK2MSFTNG P10.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.verticalresp onse.com/?fid=20351f4764 "
sRedirect = sRedirect & "&email_address =" & Server.URLEncod e(email_address ) sRedirect = sRedirect & "&first_nam e=" & Server.URLEncod e(first_name)
sRedirect = sRedirect & "&last_name =" & Server.URLEncod e(last_name)
sRedirect = sRedirect & "&optin=1"
Response.WRITE sRedirect

''uncomment this after you understand what happened
'Response.Redir ect sRedirect

%>

Ray at work

"jason" <ja***@catamara nco.com> wrote in message
news:OK******** ******@TK2MSFTN GP12.phx.gbl...
Sorry - this would make more sense:

<%Response.redi rect

"http://opt-in.verticalresp onse.com/?"%>fid=20351f4 764&email_addre ss=<%=emai
l_address%>&fir st_name=<%=firs t_name%>&last_n ame=<%=last_nam e%>&optin=1

"jason" <ja***@catamara nco.com> wrote in message
news:uW******** ******@TK2MSFTN GP09.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.redire ct...

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

<%Response.redi rect

"http://opt-in.verticalresp onse.com/?"%>fid=20351f4 764&email_addre ss=&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.redire ct is not
getting the entire querystring
<% Response.redire ct "http://opt-in.verticalresp onse.com/?
fid=20351f4764& email_address=& first_name=&las t_name=&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.redire ct...
I tried switching between asp and html to make it easier but I pick upsyntax errors when I do this...

<%Response.red irect
"http://opt-in.verticalresp onse.com/?"%
fid=20351f4764 &email_address= &first_
name=&last_nam e=&optin=1%>


.

Jul 19 '05 #7

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

Similar topics

1
8016
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 the domain server address. (these changes were in the $recipient and $referers section) I have set up the form and can get the form to email me the results. I have two main problems. The first one is that I am trying to get the form to go to a...
2
4045
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 5.0 + and different operating systems (Win2000, WinXP, WinME, Win98). Functions that use the Response.Redirect no longer work for clients using NT 4.0 SP6a IE 5.5 or IE 6.0.
4
14616
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
15319
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 their server. But no-one really knows if this program is at fault because the problem only exhibits itself every once and a while, and the only thing they can see is that their web-users suddenly stop receiving responses.
10
7927
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 the URL, in the format http://yourapplicationpath/(Session.SessionID)/... which saves numerous headaches when it comes to storing state across page requests and sessions.
4
3712
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 development mode, I need to have sDirectoryString equal to my
4
5490
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 another page using a response.redirect(some page), all I get is a blank page. The url in the browser hasn't changed at all and none of the page validation takes place. The site works fine when hosted locally (WinXP IIS5) but when I move it to the web...
5
4872
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 drop down list and then clicks one of a couple of buttons to send them off to another page. We do a little bit of validation in the Event Handler and then do a Response.Redirect off to the next page. Then the page just sits there and never...
12
3466
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 debugger, it works fine, though every so often I get a HttpException. System.Web.HttpException was caught ErrorCode=-2147024809 Message="An error occurred while communicating with the remote host. The error code is 0x80070057."...
0
8851
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8736
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9143
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4497
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4761
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2588
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2137
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.