Dec 18, 2014, 5:44 AM
Conflict between ext:ResourceManager and asp:ScriptManager
Hi!
When add "<ext:ResourceManager runat="server" />" tag, I find it can not select "ENGLAND" in DropDownList1. If i don't want use ext:Combox, how to do it?
TKS & B.RGDS
Huahu
When add "<ext:ResourceManager runat="server" />" tag, I find it can not select "ENGLAND" in DropDownList1. If i don't want use ext:Combox, how to do it?
TKS & B.RGDS
Huahu
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
DropDownList1.Items.Add("USA");
DropDownList1.Items.Add("ENGLAND");
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
this.DropDownList2.Items.Clear();
switch (this.DropDownList1.SelectedValue)
{
case "USA":
this.DropDownList2.Items.Add("NewYork");
this.DropDownList2.Items.Add("Washington");
break;
case "ENGLAND":
this.DropDownList2.Items.Add("London");
this.DropDownList2.Items.Add("Cambridge");
break;
}
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
}
</script>
<html>
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" />
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:DropDownList ID="DropDownList1" runat="server"
AutoPostBack="True"
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" />
<asp:DropDownList ID="DropDownList2" runat="server"
AutoPostBack="True"
OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" />
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>