473,597 Members | 2,050 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 2042
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
7991
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
4036
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
14604
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
15289
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
7883
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
3705
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
5484
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
4852
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
3452
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
7884
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
8270
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...
0
8380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8029
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
6683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5423
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2394
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1230
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.