SPListItem theitem = SPContext.Current.Site.RootWeb.Lists["listname"].GetItemById(1);string theImg = theitem.GetFormattedValue("ChallengeImage");
string theImgUrl ="";
if(!string.IsNullOrEmpty(theImg))
{
theImgUrl = XElement.Parse(ImgTag + "").Attribute("src").Value;
}
string theImgUrl ="";
if(!string.IsNullOrEmpty(theImg))
{
theImgUrl = XElement.Parse(ImgTag + "").Attribute("src").Value;
}
Comments