ListBox

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hello,

In my page, there are a few listboxes. Whenever the user changes an item a postback occurs, thus the page is refreshed. This is not very user-friendly. I would like to know if there is a way to avoid this postbacks and retrieve the "SelectedItem" or "SelectedValue" when the page is reloaded (I have a button that saves some of the page's content).

Thanks
Mike
 
You should set the AutoPostBack property to false on all the listboxes.

You will be able to reference the selected items as you have described when the page does postback.

hope this helps,
John
 
Back
Top