By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,685 Members | 1,243 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,685 IT Pros & Developers. It's quick & easy.

Response.Redirect problem from remote machine

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.