.NET and SharePoint from a different angle!
LINQ Datasource and Error: Operator ‘=’ incompatible with operand types ‘String’ and ‘Int32’
It’s an issue when you try to filter LINQ datasource within Visual Studio, where you choose Control and then it will show “==” in the Operator as follows:
When you try to run the page, it will give you and error saying:
Operator ‘=’ incompatible with operand types ‘String’ and ‘Int32’
All what you need to do is to change the Convert the Parameteres into the required data type as follows:
And it will magically work!
<span>%d</span> bloggers like this: