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