Drop Down Select index changed
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
In the SelectIndexChanged assign the txtBox.Text property = lstBox.Items[lstBox.selectedIndex] this is in c# translate it in VB.Net
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
By shafiqm in forum ASP.NET
Last Post: 05-04-2005, 03:51 PM
By Nancy in forum Database
Last Post: 01-11-2002, 10:38 PM
By Ronald in forum Database
Last Post: 11-27-2001, 10:28 AM
By Cary R in forum Database
Last Post: 09-24-2001, 03:40 PM
By Bob Hines in forum Database
Last Post: 04-13-2000, 02:53 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL