Hi,
I've developed a small web page using Visual Studio. What happens is basicly this: I have some controls, that gets populated using object datasources from a typed dataset. Theese controls are drop down lists, that hold the ID of data in different tables (disks, cpu's, ram etc.). The structure of the tables are equal (ID, name, price). Furthermore, I have a detailsview that gets populated by an object datasource. This datasources takes the ID's from the controls as parameters, which it passes by to a stored procedure in the typed dataset. The outcome is a detailview showing the price of a certain combination of hardware components.
This actually worked fine, but not it doesn't anymore. I keep getting this error:
"Exception Details: System.FormatException: Input string was not in a correct format."
If I supply the parameters for the last object datasource manually (for example 1, 1, 1, 1, 1) there is no problem at all. It is only when I start supplying theese input parameters as SelectedValues from the dropdown-lists, that the problem occours - more precisely, it is the SelectedValue of the RAM-dropdown list that causes the problem.
The reason I am so confused is that all the dropdown controls are equal and so are all the tables in the database. The datatypes in all the tables are ID (int), Name (nvarchar(50)) and Price (money). Therefore, I simply do not understand why the RAM-dropdown makes this problem.
Start Free Trial