UpdatePanel导致ASP.net中的整页回发
我是ASP.NET的初学者,我对UpdatePanel有一个问题:它会导致整页回发,而不是部分回发。这是我的密码:UpdatePanel导致ASP.net中的整页回发,asp.net,updatepanel,postback,Asp.net,Updatepanel,Postback,我是ASP.NET的初学者,我对UpdatePanel有一个问题:它会导致整页回发,而不是部分回发。这是我的密码: <asp:Panel ID="BottomPanel" runat="server" BorderStyle="Ridge"> <table> <tr> <td align="center"> <br /> &l
<asp:Panel ID="BottomPanel" runat="server" BorderStyle="Ridge">
<table>
<tr>
<td align="center">
<br />
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" EnablePartialRendering="true"
runat="server">
</asp:ToolkitScriptManager>
<asp:CheckBoxList runat="server" ID="GroupCheckBoxList" RepeatColumns="10" RepeatDirection="Horizontal"
RepeatLayout="Table" AutoPostBack="true" ClientIDMode="AutoID" OnSelectedIndexChanged="GroupCheckBoxList_SelectedIndexChanged">
</asp:CheckBoxList>
</td>
</tr>
<tr>
<td>
<asp:UpdatePanel ID="GroupUpdatePanel" runat="server" Visible="true" UpdateMode="conditional">
<ContentTemplate>
<asp:Panel ID="GroupGraphPanel" runat="server" Visible="true">
</asp:Panel>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="GroupCheckBoxList" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
</table>
</asp:Panel>
您的回发控件不是UpdatePanel的一部分,请将其移动到UpdatePanel中,它应该会按预期工作。我已经尝试过了,但它没有工作……请注意:如果您没有开始-停止,请后退一步,问问自己为什么不学习asp.net MVC。许多人会考虑你正在学习过时的WebFrm方法。MVC是你应该学习的。@TomTom不幸的是,这更多的是工作场所的要求,我必须适应它。@AlexanderManekovskiy你说得对。每次有部分回发时,我都将回发错误为页面的滚动回发。谢谢你指出这一点。