I have a member's profile form, the dropdownlists populated with his data. How do I set the selected item of a dropdownlist?
eg. Gender = Male or Female, how do I set the gender value to that which I've retrieved from this member's gender property? Thanks.
I like the .findByText methods there because they are easier to use, but beware they will throw an exception if the text is not found, so I'd suggest the following block to handle it:
try
drp.items.findbytext("male".selected = true
catch
drp.selectedIndex = 0
end try
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.