473,587 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response.Redire ct 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.a spx) using
Response.Redire ct. 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.EventArg s) Handles btnSubmit.Click
Response.Redire ct("MemberRepor t.aspx?MemberID =10058")
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 2475

"JDS" <ad***@jeremysa ge.comwrote in message
news:11******** **************@ i38g2000prf.goo glegroups.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...@jeremysag e.comwrote in message

news:11******** **************@ i38g2000prf.goo glegroups.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...@jeremysag e.comwrote:
On 6 Jun, 21:23, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :
"JDS" <a...@jeremysag e.comwrote in message
news:11******** **************@ i38g2000prf.goo glegroups.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.EventArg s) Handles btnSubmit.Click
Response.Redire ct("MemberRepor t.aspx?MemberID =10058")
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
4695
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 page response OK if the user exist and Error if the user not exists. How can I take this data to send it to my own pages somewhere? After the...
3
2807
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...
8
3187
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 Request.QueryString("url") Else
2
3692
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 pieces of information automatically entered into textfields on a form managed by a different site on a different server. I can do a...
5
2142
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 work. The first page is a login page and the response.redirect does work there but not on the third page. Any ideas? Thanks in advance. John
10
7882
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...
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
13
31380
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 outside of our domain, we get the error.. ** Client found response content type of 'text/html; charset=Windows-1252', but expected 'text/xml' **. We...
5
7843
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 this is done, I'd like to have the page redirect to a new page that says "You have successfully blah blah blah." This doesn't seem to be possible,...
0
7849
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...
0
8215
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. ...
0
8347
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...
0
8220
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...
0
5394
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...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
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
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
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...

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.