Hi guys, so, I have a page with Updatepanel control, and inside him I have a asp:Listbox control. I implement the OnSelectedIndexChanged event of listbox to populate some asp:textbox controls according selected listbox item. Every think works fine in IE7,8, Firefox, Chrome, Opera... But when I try to use in IE6, every time that I click on one item in the listbox, the page flickes a lot. I was search for a solution, but cannot found nothing.
Does anyone have same problem? Can help?
Thanks a lot.
Sample code that error occurs:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<script runat="server">
void DropDownSelection_Change(Object sender, EventArgs e)
{
Calendar1.DayStyle.BackColor = System.Drawing.Color.FromName(ComboBox1.SelectedItem.Value);
}
protected void ListBoxMeterModel_SelectedIndexChanged(object sender, EventArgs e)
{
// DoSomething
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
SelectedDate.Text = Calendar1.SelectedDate.ToString();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>UpdatePanel Example</title>
</head>
<body>
<form id="form2" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager2"
runat="server" />
<asp:UpdatePanel ID="UpdatePanel1"
runat="server">
<ContentTemplate>
<asp:Calendar ID="Calendar1"
ShowTitle="True"
OnSelectionChanged="Calendar1_SelectionChanged"
runat="server" />
<div>
Background:
<br />
</div>
<br />
<asp:ListBox ID="ListBoxMeterModel" runat="server" Width="300px" Height="83px"
OnSelectedIndexChanged="ListBoxMeterModel_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem Text="Item 1" Value="1"></asp:ListItem>
<asp:ListItem Text="Item 2" Value="2"></asp:ListItem>
<asp:ListItem Text="Item 3" Value="3"></asp:ListItem>
</asp:ListBox>
Selected date:
<asp:Label ID="SelectedDate"
runat="server">None.</asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
<br />
</div>
</form>
</body>
</html>
Comments: Starting with v15.1 of Ajax Control Toolkit, we refused to support old versions of browsers. We tested this control in all modern browsers and did not detect the described problem.
Does anyone have same problem? Can help?
Thanks a lot.
Sample code that error occurs:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<script runat="server">
void DropDownSelection_Change(Object sender, EventArgs e)
{
Calendar1.DayStyle.BackColor = System.Drawing.Color.FromName(ComboBox1.SelectedItem.Value);
}
protected void ListBoxMeterModel_SelectedIndexChanged(object sender, EventArgs e)
{
// DoSomething
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
SelectedDate.Text = Calendar1.SelectedDate.ToString();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>UpdatePanel Example</title>
</head>
<body>
<form id="form2" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager2"
runat="server" />
<asp:UpdatePanel ID="UpdatePanel1"
runat="server">
<ContentTemplate>
<asp:Calendar ID="Calendar1"
ShowTitle="True"
OnSelectionChanged="Calendar1_SelectionChanged"
runat="server" />
<div>
Background:
<br />
</div>
<br />
<asp:ListBox ID="ListBoxMeterModel" runat="server" Width="300px" Height="83px"
OnSelectedIndexChanged="ListBoxMeterModel_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem Text="Item 1" Value="1"></asp:ListItem>
<asp:ListItem Text="Item 2" Value="2"></asp:ListItem>
<asp:ListItem Text="Item 3" Value="3"></asp:ListItem>
</asp:ListBox>
Selected date:
<asp:Label ID="SelectedDate"
runat="server">None.</asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
<br />
</div>
</form>
</body>
</html>
Comments: Starting with v15.1 of Ajax Control Toolkit, we refused to support old versions of browsers. We tested this control in all modern browsers and did not detect the described problem.