Author: Pmillio | Posted on: 7/18/2008 6:21:01 AM | Views : 383

Hi i get the following error, Unable to cast object of type 'System.DBNull' to type 'System.String'.  A generic image is meant to appear when no image is found in the database for a particular product, this is how the code is laid out;
protected string FormatImageUrl(string url)
{
if (url != null && url.Length > 0)
{

//if (File.Exists(url))
return (url);
}

Go to the complete details ...