G
Guest
In a code-behind page in asp.net, written in c#, i am attempting to cast a
value from a dataset into an "int" type. The value in the dataset is itselt
an integer.
My code is:
DropDownList1.SelectedIndex = (int)ds.Tables[0].Rows[0]["vStudyQTypeId"];
The error i get is:
System.InvalidCastException: Specified cast is not valid.
Can anyone shed some light on what might be the problem? I have been trying
to work w/ mappings and schematypes, however, still have no success.
Thanks,
value from a dataset into an "int" type. The value in the dataset is itselt
an integer.
My code is:
DropDownList1.SelectedIndex = (int)ds.Tables[0].Rows[0]["vStudyQTypeId"];
The error i get is:
System.InvalidCastException: Specified cast is not valid.
Can anyone shed some light on what might be the problem? I have been trying
to work w/ mappings and schematypes, however, still have no success.
Thanks,