friend i got it..... i will share with you...
i changed
private Image _ProductImage;
public Image ProductImage
{
get { return _ProductImage; }
set { _ProductImage = value; }
}
to
private string_ProductImage;
public string ProductImage
{
get { return _ProductImage; }
set { _ProductImage = value; }
}
and created a
private void showimage(string imagepath)
{
imagecontrol.ImageUrl = "~/foldername/" + imagepath +"";
}
and called this
prod.ProductImage = sdr["PImagePath"].ToString(); showimage(prod.productImage);
[edit]code block added[/edit]