ListBox and Postback

  • 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
 
Set the 'AutoPostback' attribute of the control to false.

--
- Paul Glavich
Microsoft MVP - ASP.NET



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
 
Back
Top