How to prevent Listbox on WebForm scrolling during postback

  • Thread starter Thread starter Tom Wild
  • Start date Start date
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
 
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
 
Back
Top