Postback Question

Results 1 to 2 of 2

Thread: Postback Question

  1. #1
    Join Date
    Dec 1969

    Default Postback Question

    I have a dropdownlist that I have populated from a database. That all works wonderfully. When I select from the list and press the search button (it adds to part of a database search query) the list defaults to 0 index. How do I keep it from doing that? Thanks!

  2. #2
    Join Date
    Dec 1969

    Default RE: Postback Question

    Your probably repopulating the listbox in page_load or someplace... you need to do it like this. <BR><BR><BR>&#039;&#039; This way listbox only gets populated when the page<BR>&#039;&#039; first loads. <BR><BR>if Not IsPostBack then<BR><BR> &#039; Fill listbox<BR><BR>end if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts