473,383 Members | 1,876 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,383 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 2159
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.