我想請教一個問題:
就是我在瀏覽器最下邊有一個文本框,我往裡輸入值後,向服務器發送。但我想回傳後頁面不要置頂,還處在最下方。不知如何實現?可有相關的資料學習啊?

解决方案 »

  1.   

    试试
    Page_Load里面
    this.Page.SmartNavigation = true;或者
    HTML里面
    <%@ ....... Language="c#"  SmartNavigation = true%>
      

  2.   

    这个比较麻烦
    根据上次的document.body.scrollLeft;
    document.body.scrollTop;
    通过
    this.Page.RegisterStartupScript( "SetScroll","<script>setScroll("+strScrollX+","+strScrollY+",false)</script>" );
    进行再设置
      

  3.   

    function setScroll( x,y,isBodyEvent )
    {
    if( !isBodyEvent )
    {
    window.scrollTo( x,y );
    }
    document.all["ScrollX"].value = document.body.scrollLeft;
    document.all["ScrollY"].value = document.body.scrollTop;
    }
      

  4.   

    参考--persist the scroll position of an ASP.NET page:
    http://www.cnblogs.com/fengzhimei/archive/2004/07/04/21055.aspx