public string GetSnippetVersionText(string DBKey)
{
try {
Guid guidSnippet = new Guid(DBKey);
ContentSnippet cs = ContentSnippet.GetVersion(guidSnippet);
if (cs != null) {
if (String.IsNullOrEmpty(cs.ContentBody)) {
return "No Data";
} else {
if (cs.ContentBody.Length < 768) {
return cs.ContentBody;
} else {
return cs.ContentBody.Substring(0, 700) + "[.....]";
}
}
}
return "OK";
} catch (Exception ex) {
SiteData.WriteDebugException("webservice", ex);
return "FAIL";
}
}