查詢:獲取錯誤「輸入字符串格式不正確。」在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