473,386 Members | 1,752 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,386 software developers and data experts.

Response.Redirect problem from remote machine

JDS
I am a newbie to asp.net but have done traditional vb, asp and vb.net
- please forgive any dumb questions!

As a test I have a very simple page (Default.aspx) with a single
button which then redirects to a second page (MemberReport.aspx) using
Response.Redirect. I have the code working on a remote machine as
localhost and the same code running on the server as localhost both
with no problems. However, when I try to access the pages on the
server from a remote machine it does not work.

I can access either page directly from the remote machine, both from
within the network and from outside. When I click on the button on the
first page from within the network it just seems to refresh the same
page; when I access the page from outside the network and click the
button it comes up with an error message "Internet Explorer cannot
display the webpage".

The code is very simple:
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
Response.Redirect("MemberReport.aspx?MemberID=1005 8")
End Sub
(note I can open the target page directly with no problem).

Version information:
server: Windows SBS 2003, virtual directory running asp.net version
2.0
client: Windows XP Pro, IE 7.0

Any help greatly appreciated.

Jun 6 '07 #1
4 2461

"JDS" <ad***@jeremysage.comwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
page; when I access the page from outside the network and click the
button it comes up with an error message "Internet Explorer cannot
display the webpage".
Go to Tools - Internet Options - Advanced tab and uncheck the 'Show friendly
HTTP error messages'

After that you will see the error message
Jun 6 '07 #2
JDS
On 6 Jun, 21:23, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:
"JDS" <a...@jeremysage.comwrote in message

news:11**********************@i38g2000prf.googlegr oups.com...
page; when I access the page from outside the network and click the
button it comes up with an error message "Internet Explorer cannot
display the webpage".

Go to Tools - Internet Options - Advanced tab and uncheck the 'Show friendly
HTTP error messages'

After that you will see the error message
Thanks for the reply. Unfortunately, I have tried that and it still
says "Internet Explorer cannot display the webpage" - makes it harder
to know where to start looking.

Jun 6 '07 #3
On Jun 6, 11:57 pm, JDS <a...@jeremysage.comwrote:
On 6 Jun, 21:23, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:
"JDS" <a...@jeremysage.comwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
page; when I access the page from outside the network and click the
button it comes up with an error message "Internet Explorer cannot
display the webpage".
Go to Tools - Internet Options - Advanced tab and uncheck the 'Show friendly
HTTP error messages'
After that you will see the error message

Thanks for the reply. Unfortunately, I have tried that and it still
says "Internet Explorer cannot display the webpage" - makes it harder
to know where to start looking.
What's the full code of your web form? Is there any client script or
ASP.NET validation that might block a form to postback? In addition,
try to check if Server.Transfer is working

Jun 6 '07 #4
JDS
On 6 Jun, 23:37, Alexey Smirnov <alexey.smir...@gmail.comwrote:
>
What's the full code of your web form? Is there any client script or
ASP.NET validation that might block a form to postback? In addition,
try to check if Server.Transfer is working- Hide quoted text -
The original opening page just had a single button with the following
code:

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
Response.Redirect("MemberReport.aspx?MemberID=1005 8")
End Sub

However, since then I was developing the target page, tried again but
with additional items on the opening page and everything working OK.
Tried reverting back to the original and all still working! Absolute
mystery to me. Thanks for your help anyway.

Best regards,
Jeremy

Jun 9 '07 #5

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

Similar topics

2
by: Kostas kousinovalis | last post by:
Hello I have a asp page which it post some values to an external web page (not mine) with the method response.redirect (www.website.com/page.asp?username=user&password=mypass) The external web...
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...
8
by: Daniel | last post by:
Hello, I have an old asp page that was used to redirect users called redirect.asp: <code1> <% Option Explicit If Request.QueryString("url") <> "" Then Response.Redirect ...
2
by: Stephan Bour | last post by:
I have a vexing problem I hope someone can help me with: I have an ASP.Net site that allows users to place orders for biological materials. Once the order is done though, I would like to have two...
5
by: john | last post by:
Hello, One our thrid page for some reason the response.redirect isn't working on the live server. It works fine on the development machine but when we move the code to the live server it doesn't...
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...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
5
by: danielhamd | last post by:
I have a link on an ASP page that loads the Response stream with a .vcs file stream and then sends it to the clients machine. This opens the calendar entry in their Outlook, etc. However, once...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
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,...
0
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...
0
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,...
0
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...

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.