DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Ajax SelectBox selected index not changed when new item selected

  1. #1
    Join Date
    Oct 2008

    Ajax SelectBox selected index not changed when new item selected

    I have an ajax generated select box in the application that I am working on. The user may add items to the select box via ajax. The Select box populates with the new item fine, but when the new item is selected, the selected index or value remains set to index 0. This only happens on new items added by ajax to the select box. If I do a regular postback, or come back to the page the newly added item selects fine. Any suggestions? I am working in vs2003 (not my choice, this is my job). Thanks for you help.

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Welcome to DevX

    Have you tried doing a postback after each time an item is added?

Similar Threads

  1. List1 changes selected index problem
    By mark103 in forum .NET
    Replies: 4
    Last Post: 04-13-2008, 08:39 PM
  2. Getting a GUI to run
    By Eric in forum Java
    Replies: 4
    Last Post: 04-14-2006, 09:09 AM
  3. Replies: 1
    Last Post: 01-07-2006, 01:14 PM
  4. TreeView Control & Selected Index Changed
    By shafiqm in forum ASP.NET
    Replies: 0
    Last Post: 05-04-2005, 02:51 PM
  5. Getting a GUI to function
    By Eric in forum Java
    Replies: 1
    Last Post: 11-27-2001, 07:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center