G
Guest
Hello all,
Can some please help with an error I'm having. I'm binding a Hashtable to a
Repeater and on the ItemDataBound event i have this code:
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatingItem)
{
DataRowView dataRowView = (DataRowView)e.Item.DataItem;
string j = dataRowView[0].ToString();
}
but I'm getting the error, "specified cast is not valid".
at the below line:
DataRowView dataRowView = (DataRowView)e.Item.DataItem;.
Thanks all.
Jon
Can some please help with an error I'm having. I'm binding a Hashtable to a
Repeater and on the ItemDataBound event i have this code:
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatingItem)
{
DataRowView dataRowView = (DataRowView)e.Item.DataItem;
string j = dataRowView[0].ToString();
}
but I'm getting the error, "specified cast is not valid".
at the below line:
DataRowView dataRowView = (DataRowView)e.Item.DataItem;.
Thanks all.
Jon