Link to home
Start Free TrialLog in
Avatar of Ollie90
Ollie90Flag for United States of America

asked on

Try Catch End Try question. Fill textbox on a certain error

i have in a try end try these lines, to fill dropboxes:

DropDownList16.SelectedValue = DropDownList16.Items.FindByText(Strings.Trim(strSplitArr(1))).Value

i will have an error if strSplitArr(1) is not on the list of the dropdown.

what do i need to do, to catch the error for dropdownlist16 and if the value is not found, put the value of strSplitArr(1) in a textbox
ASKER CERTIFIED SOLUTION
Avatar of nost2
nost2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial