dcsimg
Results 1 to 2 of 2

Thread: How to move scroll bars in System.Web.UI.WebControls.Literal control?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Question How to move scroll bars in System.Web.UI.WebControls.Literal control?

    Hello,

    I had someone write a small chat site in ASP.NET and he used a System.Web.UI.WebControls.Literal control to show the text. The new text is added to the bottom and when it does the control is refreshed and you see the top beginning of the text. I need it to move to the button of the control when new text is added. I have searched and cannot find a way to do this. Does anyone know? The next is created using the stringbuilder and then assigned to the control with a timer which works well. I just want it to go to the bottom after setting the text.

    Thanks,
    Warren

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: How to move scroll bars in System.Web.UI.WebControls.Literal control?

    You might solve it, if you use a Label control in stead of a Literal contol. You can add a class to that control (CSSClass="NoScrollBar") and in the CSS file add this:
    .NoScrollBar{ overflow: auto; }

    Hope it helps
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width