J
J. Askey
Hello...
I have a situation where I need to have a drop down list that binds to a
class such as
class person
{
public int key;
public int name;
public int age;
public int zip;
}
I am using a webservice and expose a method called 'GetPersons' that returns
a List<person>. By setting the binding I can easily display the name property
and and use the key property as the value.
however... here is the question I have... I want to use the 'AfterUpdate'
event for the dropdownlist to do one thing...
1. Display the 'zip' property for the selected item in a seperate text box
on the form after the person has been selected.
From the docs I am unsure of how to get a property of the selected item that
is not the value or display field... does anyone have a JScript example of
how to do this?
thank you...
I have a situation where I need to have a drop down list that binds to a
class such as
class person
{
public int key;
public int name;
public int age;
public int zip;
}
I am using a webservice and expose a method called 'GetPersons' that returns
a List<person>. By setting the binding I can easily display the name property
and and use the key property as the value.
however... here is the question I have... I want to use the 'AfterUpdate'
event for the dropdownlist to do one thing...
1. Display the 'zip' property for the selected item in a seperate text box
on the form after the person has been selected.
From the docs I am unsure of how to get a property of the selected item that
is not the value or display field... does anyone have a JScript example of
how to do this?
thank you...