BUG??: Autopostback in DropDownListBox causes blank a page when using frames

  • Thread starter Thread starter Eduardo M?ndez
  • Start date Start date
E

Eduardo M?ndez

Hello:

I have an aspx page with a TextBox and a DropDownListBox both have
Autopostback property set to true and some code in the TextChanged and
SelectedIndexChanged events.

When text in TextBox is changed and the DropDownListBox is expanded
with the mouse (this fires text changed event) the page gets blank.
This only happens when the aspx is contained by a frame.

Anybody who can point me to the reason-solution?

Thanks
 
Here's the code to reproduce the error, I'm using VS.NET 2003:
-----------------------------------------------------------------
The frameset:
------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>HTMLPage1</title></head>
<frameset><frame src=WebForm2.aspx></frameset>
</html>
-----------------------------------------------------------------
The aspx page: Name it WebForm2.aspx (or change frame's src attribute)
-------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm2</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<asp:TextBox id="TextBox1" runat="server"
AutoPostBack="True"></asp:TextBox>
<asp:Label id="Label1" runat="server">Label</asp:Label><BR>
<asp:DropDownList id="DropDownList1" runat="server"
AutoPostBack="True">
<asp:ListItem Value="1">1</asp:ListItem><asp:ListItem
Value="2">2</asp:ListItem><asp:ListItem Value="3">3</asp:ListItem>
</asp:DropDownList>
<asp:Label id="Label2" runat="server">Label</asp:Label>
</form>
</body>
</HTML>

-----------------------------------------------------------------
The events asociated:
--------------------
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles TextBox1.TextChanged
Me.Label1.Text = Me.TextBox1.Text
End Sub
Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
DropDownList1.SelectedIndexChanged
Me.Label2.Text = Me.DropDownList1.SelectedValue
End Sub
 
Back
Top