Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
How to set TextBox Text when value selected from DropDown
Gary King
Jun 23 2011 10:30 AM
27.1k
Reply
I have a database table named tblCityState with the following data:
CITY
STATE
New York
New York
Los Angeles
California
Atlanta
Georgia
on my aspx page I have a dropdown (ddCity) bound to the table (Select City from tblCityState).
When the user Selects "Los Angeles" from the DropDown, I want a textbox (tbState) to be populated with "California".
Now, I could set the value of the DropDown Item to be the State, but I want the Item value to be the City.
What is the best / easiest way to achive this with ASP.NET / C# / AJAX?
Thanks
Gary
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
HoverExtender not HoverMenuExtender
Not able to select greater date from the system date