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; }
Cloud development @ its best. Snippets, ideas, latest, best practices etc.