且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将asp.net文本框滚动到底部

更新时间:2023-10-07 16:31:52

处理Sys.WebForms.PageRequestManager.endRequest 事件并向下滚动文本框:

Handle the Sys.WebForms.PageRequestManager.endRequest event and scroll the textbox down:

var tbox = $get('<%= TextBox1.ClientID %>');
tbox.tbox.scrollTop = tbox.scrollHeight;