0

How to scroll down the textbox in asp.net using c#? this textbox is a chat box...it should scroll down as the new text comes in. help is appreciated?

1 Answer 1

1

If you only want it to scroll on page load then put this in your onload eventHandler. If your div is being populated via AJAX then put this after the code that is appending content.

var sd = document.getElementById("#someDiv");
sd.scrollTop = sd.scrollHeight;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.