Click here to Skip to main content
15,946,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SELECT op_need_name 
FROM ces_v_skill_operation_name 
WHERE oper_need_code in (SELECT DISTINCT oper_need_code FROM ces_skill_style_master WHERE fg_mat_no = '" + (ValueDescriptionPair)ddstyle.SelectedItem.Value + "')AND critical_code ='B'

When i compile the code i got the error like this

Error   1   Cannot convert type 'string' to 'ValueDescriptionPair' 

Pls help somebody

Thanks in advance
Updated 5-May-10 23:18pm

1 solution

You're trying to convert an intrinsic type to a complex type. You can't do that.

Change this:


to this:


Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900