Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing SelectedValue of dropdownlist to a text box
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Storing SelectedValue of dropdownlist to a text box
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01142860
Message ID:
01142860
Views:
54
I have a text box in which a user may type a code and a dropdown list which has the description as the BindingSourceDisplayMember and the code as the BindingSourceValueMember. If the user enters a valid code in the text box, I would like the drop down list to show the description for that value. In the TextChanged method of the text box, I set the SelectedValue of the drop down list to the Text property of the text box. The display of the drop down list still does not change. What is the correct way to do this?

Similarly, if the user makes a selection from the dropdown list, I want the value of the text box to change. I put that code in the SelectedIndexChanged method of the drop down list but the value in the text box does not change.

Any suggestions?

Thanks.

Linda
Linda Harmes
HiBit Technologies, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform