Chapter 6 Beginning ASP.NET 2.0 C# Error
It is on Page 191 and I can't figure out how to fix it.
protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
row = (DataView)e.Item.DataItem;
if (row["PictureURL"].ToString().Trim() == "")
img = (Image)e.Item.FindControl("NewsImage");
img.Visible = false;
It is exact code from the book; however, it is giving me error message. "Argument '1': cannot convert from 'string' to 'int' for the 2nd if statement. Did i type something wrong??? I guess I don't even know really what this thing is talking about.