November 8th, 2003, 11:19 AM
I am developing a site in c#.
My page has a list box which pulls it values from a MS Access DB.
When the page loads the listbox is properly filled with the appropriate values from the db.
When I run the page and click on one of these values and run code to see if it was selected...it turns up false!!!
If I set autopostback to on then run the code the selected property for the listbox items becomes true (of couse depending on which rows are slected).
Unfortunatley, my page is complex and needing to postback for each listbox change will cause problems.
November 14th, 2003, 12:51 PM
Please check the page.isPostBack . This will help you to identify whether you page is loading for the first time or is it making responce after the postback.