我有一个表,我想用按钮更新,表在“li”标签内,按钮在另一个。这是我的代码:
<li runat="server">
<asp:DropDownList ID="cYear" runat="server" Width="100%" Font-Size="Large">
<asp:ListItem>2011</asp:ListItem>
...
</asp:DropDownList>
<asp:DropDownList ID="cMonth" runat="server" Width="100%" Font-Size="Large">
<asp:ListItem>1</asp:ListItem>
...
</asp:DropDownList>
<asp:DropDownList ID="cDay" runat="server" Width="100%" Font-Size="Large">
<asp:ListItem>1</asp:ListItem>
...
</asp:DropDownList>
<asp:TextBox ID="cNum" runat="server"></asp:TextBox>
<asp:Button ID="cEvent" onclick="cEvent_Click" CausesValidation="false"/>
</li>
<li runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel id = "updatePanel1" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="cEvent"/>
</Triggers>
<ContentTemplate>
...
</ContentTemplate>
</asp:UpdatePanel>
</li>
网站在Hebew中,所以只是忽略有线字符串,按钮Id是cEvent,我希望它更新updatePanel,但它只是什么都不做....