how to move scrollbars downword automatically.

Posted by Abhi_patil under JavaScript on 3/7/2009 | Views : 3647 | Status : [Member] | Replies : 2
Hi,
i am doing spell check application.
i have panel , i am assigning msg to panel.

when i click on button it shows wrong word in red color.
but problem is,
when that word is down than panel's height.
then i cannot see that word.
i want to move that scrollbar automatically downword when word is in downword position.




Responses

Posted by: Majith on: 3/8/2009 [Member] Starter

Up
0
Down
Abhi,

You can specify the styles to div tag before to panel .The code shows:

<div id="Div2" style="overflow: auto; height: 200px; width: 400px;">

<asp:Panel id=""----------------/>

</div>


Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anup1252000 on: 8/2/2009 [Member] Starter

Up
0
Down
u must write MaintainScrollPositionOnPostback on the page tag


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default52.aspx.cs" Inherits="Default52" MaintainScrollPositionOnPostback="true" %>


https://wordpress.com/pages/anuphosur.wordpress.com

Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response