private string PopulateWithMetaData() { if (string.IsNullOrEmpty(ContainerName) || string.IsNullOrEmpty(FileUrlField.Text)) return string.Empty; //Trim Url down to filename int lastSlash = FileUrl.LastIndexOf("/") + 1; string fileName = FileUrl.Substring(lastSlash); Factory factory = new Factory(Options.Username, Options.ApiKey); var cloudFile = factory.GetStorageItemInformation(ContainerName, fileName); StringBuilder sb = new StringBuilder(); sb.Append("</span>"); sb.Append("</div>");//close propertyItemContent sb.Append("</div>");//close propertyItem sb.Append("<div class=\"propertyItem\">"); sb.Append("<div class=\"propertyItemheader\">Content Type</div>"); sb.Append("<div class=\"propertyItemContent\">"); sb.Append(cloudFile.ContentType); sb.Append("</div>");//close propertyItemContent sb.Append("</div>");//close propertyItem sb.Append("<div class=\"propertyItem\">"); sb.Append("<div class=\"propertyItemheader\">Content Length</div>"); sb.Append("<div class=\"propertyItemContent\">"); sb.Append(cloudFile.ContentLength); sb.Append("</div>");//close propertyItemContent sb.Append("</div>");//close propertyItem sb.Append("<div><div><span>"); return sb.ToString(); }