-
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
-
In the SelectIndexChanged assign the txtBox.Text property = lstBox.Items[lstBox.selectedIndex] this is in c# translate it in VB.Net
Sri
-
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
-
By shafiqm in forum ASP.NET
Replies: 0
Last Post: 05-04-2005, 02:51 PM
-
By Nancy in forum Database
Replies: 2
Last Post: 01-11-2002, 09:38 PM
-
By Ronald in forum Database
Replies: 1
Last Post: 11-27-2001, 09:28 AM
-
By Cary R in forum Database
Replies: 24
Last Post: 09-24-2001, 02:40 PM
-
By Bob Hines in forum Database
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
Forum Rules
|
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
|
Bookmarks