Link to home
Get AccessLog 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 content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access