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

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

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Seb
HI Eduardo,

I have experienced the same!

Also seems a bug to me! :(

Cheers Seb

Nov 17 '05 #2

P: n/a
Seb
HI Eduardo,

I have experienced the same!

Also seems a bug to me! :(

Cheers Seb

Nov 17 '05 #3

P: n/a
I just tried this exact scenario and it worked perfectly.
"Eduardo M?ndez" <ed******@yahoo.com> wrote in message
news:af**************************@posting.google.c om...
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

Nov 17 '05 #4

P: n/a
I just tried this exact scenario and it worked perfectly.
"Eduardo M?ndez" <ed******@yahoo.com> wrote in message
news:af**************************@posting.google.c om...
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

Nov 17 '05 #5

P: n/a
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
Nov 17 '05 #6

P: n/a
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
Nov 17 '05 #7

P: n/a
I found a solution for the problem (not the bug) just set SmartNavigation=true.
ed******@yahoo.com (Eduardo M?ndez) wrote in message news:<af**************************@posting.google. com>...
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

Nov 17 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.