i used timer to refresh page every 5 second..but due to timer my multiline textbox doesn't scroll down bottom even though i used javascript to scroll to bottom
 
this is my code
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <%--<style type="text/javascript">
        textarea
        {
            resize: none;
                  height: 306px;
                  width: 360px;
              }</style>--%>
               <script type = "text/javascript">
                   window.onload = function () {
                       var TextBox = document.getElementById('<%=txtmsg.ClientID %>');
                       TextBox.scrollTop = TextBox.scrollHeight;
                   }
                   
</script>
    <style type="text/css">
        #TextBox
        {
            resize:none;
            
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </div>
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:TextBox ID="txtmsg" runat="server" TextMode="MultiLine" Height="239px" 
                Width="248px" ></asp:TextBox>
        <asp:Timer ID="Timer1" runat="server" Interval="5000" >
            </asp:Timer>
       </ContentTemplate></asp:UpdatePanel>
       
        <br />
        <br />
        Name   
        <asp:TextBox ID="TextBox2" runat="server"  Height="30px" 
            Width="140px"></asp:TextBox>
        <br />
        Msg:    
        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            style="margin-top: 0px" Text="Button" />
        <br />
            
        <br />
    
    </div>
    <p>
         </p>
    </form>
   
</body>
</html>