Q: Eval and casting.
am 04.04.2008 15:59:35 von martin.arvidssonHi!
I have a webpage with a DataGrid and a codebehind file containing a method
called OrderStatusText
The line in question in the asp page
<%# OrderStatusText((byte)Eval("OSTATUS")) %>
I got the message: Specifyed cast not valid when i ran the page
The method looks like
public string OrderStatusText(byte status)
{
do stuff
return stuff
}
Any idea why it's not possible?
I got the cast code from the msdn2 pages.
Regards
Martin