Drop Down Select index changed


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Drop Down Select index changed

  1. #1
    Join Date
    Dec 2005
    Posts
    17

    Question Drop Down Select index changed

    Hi,

    I have a dropdown ComboBox and a text box. when i select an item in
    dropdown Combo then it should automatically pull the data into the text box based on the
    dropdown combo selection. The data for both dropdown and textbox coming from the database. how to bind these together in "select indexchanged". can you provide me with vb.net code .appreciate your help
    Thanks

  2. #2
    Join Date
    May 2005
    Location
    UK
    Posts
    278
    In the SelectIndexChanged assign the txtBox.Text property = lstBox.Items[lstBox.selectedIndex] this is in c# translate it in VB.Net
    Sri

  3. #3
    Join Date
    Feb 2006
    Posts
    21
    Is the data to the textbox coming from database?
    If you want to populate the textbox based on the value selected in the dropdownlist, for eg you want to display the employee name in the textbox based on the emp id selected in the dropdownlist, set the autopostback property of the dropdownlist to true and do the coding for retriving emp name from the database table in the dropdownlist select changed event.

    Hope the above helps

Similar Threads

  1. TreeView Control & Selected Index Changed
    By shafiqm in forum ASP.NET
    Replies: 0
    Last Post: 05-04-2005, 02:51 PM
  2. How do I find duplicate records?
    By Nancy in forum Database
    Replies: 2
    Last Post: 01-11-2002, 09:38 PM
  3. Re: Query Compare for DaveSatz
    By Ronald in forum Database
    Replies: 1
    Last Post: 11-27-2001, 09:28 AM
  4. Select Distinct
    By Cary R in forum Database
    Replies: 24
    Last Post: 09-24-2001, 02:40 PM
  5. Replies: 2
    Last Post: 04-13-2000, 01:53 PM

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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