Problem with postback in ie on same machine....

G

Guest

On of my associates has been having problmes with a postback to self in IE
using Localhost...

We are trying to figure out why and how to fix it. He has already posted
here, but to make sure the MSDN subsriber help is exercised, I am posting it
here again using my nospam address.

Sorry for the duplicate posting, but I would like to resolve this issue...

Original post to follow -- from tshad -- probably only one or two threads
down....

Thanks
Rob

-------------------------------------------------------------------------------------------

I have been trying to solve this problem for a while now and have it
narrowed down.

I am on an XP SP2 trying to run ASP.NET. The page I can't seem to get
to work is:


<%@ Page Language="VB" Trace="true" ContentType="text/html"
ResponseEncoding="iso-8859-1" %>

<script runat="server" language="VB">

Sub Page_Load(Sender As Object, E As EventArgs)
If Page.IsPostBack Then
Select cmbPeople.value
Case "Bill Gates"
Response.Redirect("http://www.microsoft.com/")
Case "Larry Ellison"
Response.Redirect ("http://www.oracle.com/")
Case "Steve Case"
Response.Redirect ("http://www.aol.com/")
Case Else
End Select
End If
End Sub
</script>

<html>
<body>
<form id="frmPeople" method="post" runat="server">
People

<select id="cmbPeople" runat="server">
<option></option>
<option>Bill Gates</option>
<option>Larry Ellison</option>
<option>Steve Case</option>
</select>

<input type="submit" value="Submit">
</form>
</body>
</html>

This code works fine on Mozilla and Netscape on the same machine.

If I change the form method to "get", it works everywhere.

The old file works fine on my other machine, however.

Why would IE have a problem with POST?

This only happens on my machine, running IE and IIS (as mentioned
Netscape and Mozilla running on the same machine work fine).

However, I just found that if I go to another XP machine and run the
page on my machine, it works fine.

For example:

My machine is 10.0.0.25 and is running IE and IIS and is an XP SP2.

If I run localhost/development/test10.aspx

It doesn't work.

I go to another machine and run:

10.0.0.25/development/test10.aspx

It works.

Why would this be?

Thanks,

Tom.
 
B

bruce barker

works fine for me. probably an IE bug. on the postback, look at the postdata
to see what IE is sending.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top