Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
似乎Control.DataBind()在 C#/ASP 中调用会刷新整个页面,并将用户带回页面顶部。
Control.DataBind()
有没有办法调用DataBind()并让它只刷新它正在影响的控件,在数据绑定后将用户留在页面上的同一位置?
DataBind()
尝试将控件放在更新面板中。
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <control goes here> </ContentTemplate> </updatePanel>