How to prevent Listbox on WebForm scrolling during postback

T

Tom Wild

Hi

I have a listbox on a webform which has Autopostback set to true. When the
user selects an item in the listbox and the form reloads, the listbox
scrolls to put the selected item as high up as possible. Is there any way
to turn off this behaviour?

Thanks

Tom
 
J

Jerry III

Not use server controls but that's probably not what you want :) You can
always use OnLoad event (on the select element or on the page's body) and
scroll the first option to view...

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top