查询:获取错误“输入字符串格式不正确。”在SelectParameters
SELECT [VehicleId], [VehicleNumber], [VehicleBrand], [VehicleName], [ModelYear], [PurchasePrice]
FROM [VehicleMaster]
WHERE ([VehicleType][email protected] or @VehicleType = '') and
([VehicleNumber][email protected] or @VehicleNumber is null) and
([SaleStatus] = @SaleStatus or @SaleStatus = '-Select-') and
([OwnershipStatus][email protected] or @OwnershipDetail = '-Select-') and
([ModelYear] between @YearFrom and @YearTo or (@YearFrom = 'Year' and @YearTo = 'Year'))
标记:
<SelectParameters>
<asp:SessionParameter Name="VehicleType" SessionField="VehicleType" Type="String" />
<asp:SessionParameter Name="VehicleNumber" SessionField="VehicleNumber" Type="String" />
<asp:SessionParameter Name="SaleStatus" SessionField="SalesStatus" Type="String" />
<asp:SessionParameter Name="OwnershipDetail" SessionField="OwnershipStatus" Type="String" />
<asp:SessionParameter Name="YearFrom" SessionField="YearFrom" Type="Int32" ConvertEmptyStringToNull="true" />
<asp:SessionParameter Name="YearTo" SessionField="YearTo" Type="Int32" ConvertEmptyStringToNull="true" />
</SelectParameters>
错误:
Input string was not in a correct format.e....
请向我们展示您的周边代码..目前这是一团糟。 – 2013-03-14 03:38:34
“False”> Blockquote?这是什么样的情况? – 2013-03-14 03:39:42
看起来你的服务器端代码中存在错误的“blockquote”标签......可能在HTML格式工具栏中出现错误的按钮一次? – 2013-03-14 03:41:46