When I set my code behind as “STRICT” (Option Strict On), I get the following error: Operands of type Object used for ‘&’; runtime errors could occur.
Here’s the problematic line:
dataSet.Sort = CType(ViewState("sortExp") & DESCENDING, String)
Just wanted to know what’s wrong.
Thanks
ViewState("sortExp")returns anobject. With&you try to concatenateDESCENDING(which I assume is a string.) In strict mode this is not allowed. Try this: