J
Jeff Reed
I have this in my coding for a DataGrid:
<EditItemTemplate>
<aspropDownList id="eCategoryList" runat="server"
CssClass="selectBoxSmall" SelectedIndex='<%#
DataBinder.Eval(Container.DataItem), "Category_FK"%>'
DataValueField="Category_PK" DataTextField="Category"
DataSource="<%#eCATdv%>">
</aspropDownList>
</EditItemTemplate>
I am using Oracle ODP for .NET and the conversion it does
on Category_FK from NUMBER datatype to System.Decimal is
causing a problem in the above line. I get an error
message of "Specified cast is not valid."
How do I convert it so that it has an INT type? Or what
should I add to the above line of code that it converts
the Category_FK value/type to INT?
TIA !!!!!
Jeff
<EditItemTemplate>
<aspropDownList id="eCategoryList" runat="server"
CssClass="selectBoxSmall" SelectedIndex='<%#
DataBinder.Eval(Container.DataItem), "Category_FK"%>'
DataValueField="Category_PK" DataTextField="Category"
DataSource="<%#eCATdv%>">
</aspropDownList>
</EditItemTemplate>
I am using Oracle ODP for .NET and the conversion it does
on Category_FK from NUMBER datatype to System.Decimal is
causing a problem in the above line. I get an error
message of "Specified cast is not valid."
How do I convert it so that it has an INT type? Or what
should I add to the above line of code that it converts
the Category_FK value/type to INT?
TIA !!!!!
Jeff