1
我有更新面板和内,我有哪个在做部分回发的下拉菜单。对于下拉 ASP.NET代码:保持浏览器滚动位置的局部回传
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true"
UpdateMode="Always">
<asp:CustomDropDownList ID="Review_DropDownList" style="width: 310px;" runat="server" DataTextField="ReviewName" DataValueField="ReviewId" AutoPostBack="True" ShowAllItemText='<%$Resources:RATResource,CompanyAllItem %>' ShowAllItemValue=" " EnableViewState="true" OnSelectedIndexChanged="Review_DropDownList_SelectedIndexChanged" width="160px"></asp:CustomDropDownList>
</asp:UpdatePanel>
当我改变下拉滚动浏览器不保持位置
它会自动去到顶部。 我曾尝试MaintainScrollPositionOnPostBack = true
但它不工作。
[在部分回传ASP.NET中维护面板滚动位置]可能的副本(http://stackoverflow.com/questions/5288682/maintain-panel-scroll-position-on-partial-postback-asp-net) – Imad
试试这个解决方案http://stackoverflow.com/a/10836745/2174170 – Dumisani