473,324 Members | 2,166 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,324 software developers and data experts.

Response.Redirect in asp.net pages ?

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

5. "Page2.aspx" then calls "Page2.1.aspx" as
"Response.Redirect("http://myWeb.Net/Page2.1.aspx"); This returns a blank
page instead of the intended "page2.1.aspx" 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.aspx" via
"Response.Redirect("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\wwwroot" in Win2k3 server.

My ? is: Do I then have to sub-net "page2.1.aspx" ? 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 3787
The only thing that I can suggest is to try a relative path to the files
on the W2K3 box, like:

Response.Redirect("Page2.1.aspx");

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

5. "Page2.aspx" then calls "Page2.1.aspx" as
"Response.Redirect("http://myWeb.Net/Page2.1.aspx"); This returns a blank
page instead of the intended "page2.1.aspx" 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.aspx" via
"Response.Redirect("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\wwwroot" in Win2k3 server.

My ? is: Do I then have to sub-net "page2.1.aspx" ? 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**************@TK2MSFTNGP11.phx.gbl...
The only thing that I can suggest is to try a relative path to the files
on the W2K3 box, like:

Response.Redirect("Page2.1.aspx");

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

5. "Page2.aspx" then calls "Page2.1.aspx" as
"Response.Redirect("http://myWeb.Net/Page2.1.aspx"); This returns a blank page instead of the intended "page2.1.aspx" 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.aspx" via
"Response.Redirect("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\wwwroot" in Win2k3 server.
My ? is: Do I then have to sub-net "page2.1.aspx" ? 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
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...
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
2
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...
6
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...
3
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...
3
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...
6
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,...
4
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...
4
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.