When a user select an item in a drop-down list that is bound to a global list, then a read-only text is updated with the value of another column of this global list. In the following sample, the list contains the alpha-2
code as the value and the read-only text contains the alpha-3
code.
-
Create a drop down list bound to a global list.
-
Call a method on the
OnSelectedIndexChange
event and set theAutopostback
event totrue
.
-
Create a read-only text with the ID
COUNTRY_ALPHA3
.
-
In the .NET code, add the following code to bind the read-only text to the global list on the
SelectedIndexChange
event.