Thread: ListBox Probs

    #1
  1. Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    26
    Rep Power
    0

    ListBox Probs


    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.

    Any ideas??????
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    India
    Posts
    4
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo