473,394 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

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
7 2161
Seb
HI Eduardo,

I have experienced the same!

Also seems a bug to me! :(

Cheers Seb

Nov 17 '05 #2
Seb
HI Eduardo,

I have experienced the same!

Also seems a bug to me! :(

Cheers Seb

Nov 17 '05 #3
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eduardo M?ndez | last post by:
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...
3
by: Lloyd Sheen | last post by:
I have a page that works fine. I am trying to optimize the page by overriding some of the Information that is being saved in the hidden VIEWSTATE. If I make the properties of the dropdown False...
8
by: Matthew Louden | last post by:
why need to set autopostback property to be true?? I know autopostback event means to send the form to the server automatically. I tried checkbox, checkbox list, radio button, and radio button...
2
by: SLE | last post by:
A web user control exposes a RadioButtonList (with AutoPostBack = true) called "Question". This control also has an embedded RequiredFieldValidator control. 1. Main ASPX page is populated with...
4
by: Scott M. | last post by:
If I put RequiredFiledValidators on a page and set them up with corresponding TextBoxes everything works just fine. If I add a DropDownList and set its AutoPostBack to True, I am able to post data...
3
by: JJ | last post by:
Hi, If a control has autopostback set to true does that mean when the control losses focus then the page will postback again? A submit button will do the same thing as a control, lets say for...
2
by: rdb | last post by:
VB.NET web program with a webform w/2 dropdownlistboxes, set to AutoPostBack TRUE, selection in either dropdown fires the SelectedIndexChanged events correctly UNTIL I navigate to second webform in...
4
by: xzzy | last post by:
VS 2003, code behind is C# Situation: 1. a webpage has 4 frames: TOP LEFT RIGHT BOTTOM
0
by: Med | last post by:
Hi, I have two dropDown lists ddlCars and ddlModels. ddlCars AutoPostBack="true" to populate the ddlModels when a car is selected. If the page is not valid (i.e. user left a mandatory textbox...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.