<legend id='oaaBI'><style id='oaaBI'><dir id='oaaBI'><q id='oaaBI'></q></dir></style></legend>

    1. <small id='oaaBI'></small><noframes id='oaaBI'>

      • <bdo id='oaaBI'></bdo><ul id='oaaBI'></ul>
    2. <i id='oaaBI'><tr id='oaaBI'><dt id='oaaBI'><q id='oaaBI'><span id='oaaBI'><b id='oaaBI'><form id='oaaBI'><ins id='oaaBI'></ins><ul id='oaaBI'></ul><sub id='oaaBI'></sub></form><legend id='oaaBI'></legend><bdo id='oaaBI'><pre id='oaaBI'><center id='oaaBI'></center></pre></bdo></b><th id='oaaBI'></th></span></q></dt></tr></i><div id='oaaBI'><tfoot id='oaaBI'></tfoot><dl id='oaaBI'><fieldset id='oaaBI'></fieldset></dl></div>

      1. <tfoot id='oaaBI'></tfoot>

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

        how to scroll asp.net textbox to bottom(如何将asp.net文本框滚动到底部)
            <tbody id='B9wQX'></tbody>
        • <small id='B9wQX'></small><noframes id='B9wQX'>

          <i id='B9wQX'><tr id='B9wQX'><dt id='B9wQX'><q id='B9wQX'><span id='B9wQX'><b id='B9wQX'><form id='B9wQX'><ins id='B9wQX'></ins><ul id='B9wQX'></ul><sub id='B9wQX'></sub></form><legend id='B9wQX'></legend><bdo id='B9wQX'><pre id='B9wQX'><center id='B9wQX'></center></pre></bdo></b><th id='B9wQX'></th></span></q></dt></tr></i><div id='B9wQX'><tfoot id='B9wQX'></tfoot><dl id='B9wQX'><fieldset id='B9wQX'></fieldset></dl></div>
              • <bdo id='B9wQX'></bdo><ul id='B9wQX'></ul>

                <tfoot id='B9wQX'></tfoot>

                <legend id='B9wQX'><style id='B9wQX'><dir id='B9wQX'><q id='B9wQX'></q></dir></style></legend>
                  本文介绍了如何将asp.net文本框滚动到底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在构建一个带有包含日志消息的文本框的网站.使用 AJAX 更新日志.

                  I'm building a website with text box containing log messages. the log is getting updated using AJAX.

                  <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
                      <ContentTemplate>
                          <asp:TextBox ID="TextBox1" runat="server"                                 
                              onload="textbox_load"
                              Height="110px" 
                              TextMode="MultiLine"             
                              Width="100%">
                          </asp:TextBox>    
                      </ContentTemplate>
                      <Triggers>
                          <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                      </Triggers>
                  </asp:UpdatePanel>
                  

                  每次更新时我都需要向下滚动文本框.怎么样?

                  I need to scroll the text box down every time it gets updated. How?

                  推荐答案

                  处理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;
                  

                  这篇关于如何将asp.net文本框滚动到底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to keep the Text of a Read only TextBox after PostBack()?(PostBack()之后如何保留只读文本框的文本?)
                  Winforms Textbox - Using Ctrl-Backspace to Delete Whole Word(Winforms 文本框 - 使用 Ctrl-Backspace 删除整个单词)
                  Multi-color TextBox C#(多色文本框 C#)
                  How can i set the caret position to a specific index in passwordbox in WPF(如何将插入符号位置设置为 WPF 密码框中的特定索引)
                  C# Numeric Only TextBox Control(C# 纯数字文本框控件)
                  Unicode characters not showing in System.Windows.Forms.TextBox(System.Windows.Forms.TextBox 中未显示 Unicode 字符)

                    <tbody id='N6KAv'></tbody>

                      <small id='N6KAv'></small><noframes id='N6KAv'>

                      • <bdo id='N6KAv'></bdo><ul id='N6KAv'></ul>

                          <legend id='N6KAv'><style id='N6KAv'><dir id='N6KAv'><q id='N6KAv'></q></dir></style></legend>
                          <tfoot id='N6KAv'></tfoot>
                          <i id='N6KAv'><tr id='N6KAv'><dt id='N6KAv'><q id='N6KAv'><span id='N6KAv'><b id='N6KAv'><form id='N6KAv'><ins id='N6KAv'></ins><ul id='N6KAv'></ul><sub id='N6KAv'></sub></form><legend id='N6KAv'></legend><bdo id='N6KAv'><pre id='N6KAv'><center id='N6KAv'></center></pre></bdo></b><th id='N6KAv'></th></span></q></dt></tr></i><div id='N6KAv'><tfoot id='N6KAv'></tfoot><dl id='N6KAv'><fieldset id='N6KAv'></fieldset></dl></div>