473,785 Members | 2,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response.Redire ct in asp.net pages ?

WJ
1. I have a website called "myWeb" resides under E:\SOS\myWeb.Ne t" folder in
an IIS-6/Windows 2003 server. Its host-header is "myWeb.Net" .

2. Default page is "Index.aspx ".

3. In the same folder as above, there are two additional aspx pages called:
page2.aspx and page2.1.aspx.

4. The "Index.aspx " calls "Page2.aspx " with the command
"Response.Redir ect("http://myWeb.Net/Page2.aspx"); This always works.

5. "Page2.aspx " then calls "Page2.1.as px" as
"Response.Redir ect("http://myWeb.Net/Page2.1.aspx"); This returns a blank
page instead of the intended "page2.1.as px" content.

6. I developed the "myWeb" site using VS.Net2k3 and .NFW 1.1. under Windows
XP/SP2. It runs perfectly in the XP developer PC. As soon as I deployed it
to the true IIS-6 box (W2k3), it broke as described above, no error
displayed. It just does not work when "page2.aspx calls page2.1.aspx", it is
weird that "Index.aspx " can display "page2.1.as px" via
"Response.Redir ect("http://myWeb.Net/Page2.1.aspx"); It seems that the 2nd
level call breaks on the IIS-6 box, not XP.

The only different between XP and W2k3 boxes is that I donot store the
"myWeb.Net" under the legacy folder "c:\InetPub\www root" in Win2k3 server.

My ? is: Do I then have to sub-net "page2.1.as px" ? I always put all pages
under the same folder for ease of maintenance. I do this a lots with DW &
FP.

Thanks for your help,

John
Nov 18 '05 #1
2 3848
The only thing that I can suggest is to try a relative path to the files
on the W2K3 box, like:

Response.Redire ct("Page2.1.asp x");

You might also make sure the case of the files is correct. You seem to
be switching between 'page2.1.aspx' and 'Page2.1.aspx'. I don't know if
this matters in IIS 6.

Chad Evans

WJ wrote:
1. I have a website called "myWeb" resides under E:\SOS\myWeb.Ne t" folder in
an IIS-6/Windows 2003 server. Its host-header is "myWeb.Net" .

2. Default page is "Index.aspx ".

3. In the same folder as above, there are two additional aspx pages called:
page2.aspx and page2.1.aspx.

4. The "Index.aspx " calls "Page2.aspx " with the command
"Response.Redir ect("http://myWeb.Net/Page2.aspx"); This always works.

5. "Page2.aspx " then calls "Page2.1.as px" as
"Response.Redir ect("http://myWeb.Net/Page2.1.aspx"); This returns a blank
page instead of the intended "page2.1.as px" content.

6. I developed the "myWeb" site using VS.Net2k3 and .NFW 1.1. under Windows
XP/SP2. It runs perfectly in the XP developer PC. As soon as I deployed it
to the true IIS-6 box (W2k3), it broke as described above, no error
displayed. It just does not work when "page2.aspx calls page2.1.aspx", it is
weird that "Index.aspx " can display "page2.1.as px" via
"Response.Redir ect("http://myWeb.Net/Page2.1.aspx"); It seems that the 2nd
level call breaks on the IIS-6 box, not XP.

The only different between XP and W2k3 boxes is that I donot store the
"myWeb.Net" under the legacy folder "c:\InetPub\www root" in Win2k3 server.

My ? is: Do I then have to sub-net "page2.1.as px" ? I always put all pages
under the same folder for ease of maintenance. I do this a lots with DW &
FP.

Thanks for your help,

John

Nov 18 '05 #2
WJ
Thanks Chad,

I will try out the relative path. The case sensitivity is not applied in
IIS-6. It would be very crazy if it is.
John
"chad [email at] gosigma.com" <"chad [email at] gosigma.com"> wrote in
message news:Ob******** ******@TK2MSFTN GP11.phx.gbl...
The only thing that I can suggest is to try a relative path to the files
on the W2K3 box, like:

Response.Redire ct("Page2.1.asp x");

You might also make sure the case of the files is correct. You seem to
be switching between 'page2.1.aspx' and 'Page2.1.aspx'. I don't know if
this matters in IIS 6.

Chad Evans

WJ wrote:
1. I have a website called "myWeb" resides under E:\SOS\myWeb.Ne t" folder in an IIS-6/Windows 2003 server. Its host-header is "myWeb.Net" .

2. Default page is "Index.aspx ".

3. In the same folder as above, there are two additional aspx pages called: page2.aspx and page2.1.aspx.

4. The "Index.aspx " calls "Page2.aspx " with the command
"Response.Redir ect("http://myWeb.Net/Page2.aspx"); This always works.

5. "Page2.aspx " then calls "Page2.1.as px" as
"Response.Redir ect("http://myWeb.Net/Page2.1.aspx"); This returns a blank page instead of the intended "page2.1.as px" content.

6. I developed the "myWeb" site using VS.Net2k3 and .NFW 1.1. under Windows XP/SP2. It runs perfectly in the XP developer PC. As soon as I deployed it to the true IIS-6 box (W2k3), it broke as described above, no error
displayed. It just does not work when "page2.aspx calls page2.1.aspx", it is weird that "Index.aspx " can display "page2.1.as px" via
"Response.Redir ect("http://myWeb.Net/Page2.1.aspx"); It seems that the 2nd level call breaks on the IIS-6 box, not XP.

The only different between XP and W2k3 boxes is that I donot store the
"myWeb.Net" under the legacy folder "c:\InetPub\www root" in Win2k3 server.
My ? is: Do I then have to sub-net "page2.1.as px" ? I always put all pages under the same folder for ease of maintenance. I do this a lots with DW & FP.

Thanks for your help,

John

Nov 18 '05 #3

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

Similar topics

3
2825
by: Gary | last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like Session("UserType") = "Sales". Then based on the Session("UserType") I use response.redirect to take the user to a specific page. The logic and response.redirect works fine on a Win2k server but when I move the page to a server running Win2003 the...
4
14629
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
2
4499
by: FN | last post by:
I'm using User.Identity.IsAuthenticated on all my pages (from a base class), and redirecting to a login page if not authenticated. The problem is that some pages are in subfolders and others are not. Such as: www.domain.com/mustbeauth1.aspx > www.domain.com/login.aspx www.domain.com/folder/mustbeauth2.aspx > www.domain.com/login.aspx If I use Response.Redirect("login.aspx") the first one works, but the second doesn't. I thought I...
6
4326
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx serves two purposes, 1. it contains a tab strip with response.redirects to navigate to the other pages; 2. I authenticate the user by check to see if a cookie exists, if it doesn't I redirect to a login screen.
3
558
by: WJ | last post by:
1. I have a website called "myWeb" resides under E:\SOS\myWeb.Net" folder in an IIS-6/Windows 2003 server. Its host-header is "myWeb.Net". 2. Default page is "Index.aspx". 3. In the same folder as above, there are two additional aspx pages called: page2.aspx and page2.1.aspx. 4. The "Index.aspx" calls "Page2.aspx" with the command "Response.Redirect("http://myWeb.Net/Page2.aspx"); This always works.
3
1997
by: Raterus | last post by:
Anyone know how I can figure out the figure out the response.redirect trail a browser goes through when I'm using response.redirect on the server. Right now Internet Explorer just automatically redirects, I need to figure out, on the client, the pages it is being told to go to. Yes I know I can look in the address bar, but say the Response object is redirecting 3 or 4 pages per Request. I need this for a debugging issue. Thanks --Michael
6
2912
by: Keith Patrick | last post by:
I have to do some programmatic redirects (in several pages) based on URLs I am given from an external source. The URLs have querystrings at the end, but one in particular is about 240 chars long, so I need to programmatically redirect to it. Unfortunately, I can't find a way to do it. There is no Response.Form or Response.Attributes (Request has Form and Params, but they are read-only). I've tried using AppendHeader to pass my K/V pairs...
4
5392
by: Marty U. | last post by:
I have a Session variable I need to check the value of. If it is value a then redirect to some page. I need to implement this in a user control that is on all the relevent pages. I placed the if and redirect statement within the page_load of the user control. However, when you try to access any page that has the user control it simply loads for minutes and never actually redirects. What am I missing with executing the response.redirect...
4
11438
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the XMLHTTP object. However, when the page requested through the XML object makes a <%Response.Redirect()%> call, a new session is created each time. Is this a flaw in the XMLHTTP Object? How can I force the session to remain the same after a...
0
9647
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
10357
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
10163
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
10104
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
9959
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...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
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...
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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.