ListBox

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
 
G

Guest

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
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top