我在网页上添加了一个拆分器,将页面拆分为两部分。现在,在左侧面板中,我想添加一个UpdatePanel,仅在左侧面板中包含多个控件。我尝试了UpdatePanel的多个放置选项,但是唯一的工作选项(意味着当使用ASPxComboBox1进行SelectIndexChange时,后面的代码更新ASPxComboBox2的内容)是附加代码。但是,我需要将UpdatePanel的包装限制为仅第一个面板的内容(拆分器的左侧部分)。我究竟做错了什么?谢谢你的时间,我真的很感激!
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<dx:ASPxSplitter ID="ASPxSplitter1" runat="server">
<Panes>
<dx:SplitterPane>
<ContentCollection>
<dx:SplitterContentControl runat="server">
<dx:ASPxComboBox ID="ASPxComboBox1" runat="server" ValueType="System.Int32" AutoPostBack="True" DataSourceID="SqlDataSource1" TextField="CategoryName" ValueField="CategoryID"></dx:ASPxComboBox>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString3 %>" ProviderName="<%$ ConnectionStrings:ConnectionString3.ProviderName %>" SelectCommand="SELECT [CategoryID], [CategoryName] FROM [Categories]"></asp:SqlDataSource>
<dx:ASPxComboBox ID="ASPxComboBox2" runat="server" ValueType="System.String"></dx:ASPxComboBox>
</dx:SplitterContentControl>
</ContentCollection>
</dx:SplitterPane>
<dx:SplitterPane>
<ContentCollection>
<dx:SplitterContentControl runat="server">
</dx:SplitterContentControl>
</ContentCollection>
</dx:SplitterPane>
</Panes>
</dx:ASPxSplitter>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>