void LoadGallery()
{
int CategoryId = 0;
CategoryId = base.ContainerValue;
if (CategoryId <= 0)
int.TryParse(Request.QueryString[CMSConfig.QueryString.CategoryID], out CategoryId);
if (base.XSLTemplateID > 0)
{
int PageSize = 10;
if (!string.IsNullOrEmpty(Attributes["PageSize"]))
{
PageSize = Convert.ToInt32(Attributes["PageSize"]);
}
int TotalCount = 0;
string galleryXML = GalleryManager.GetGallerysPublishXML(CategoryId, Core.Enums.CMSEnums.GalleryType.Photo, 1, PageSize, ref TotalCount);
string xslPath = CMSWebHelper.GetXSLTemplateFilePath(base.XSLTemplateID);
xslPath = XSLTemplateManager.GetXSLTemplatePath(xslPath, base.XSLTemplateID);
XsltArgumentList arguments = new XsltArgumentList();
arguments.AddExtensionObject("CMS:UserControl", this);
xmlGallery.DocumentContent = galleryXML;
xmlGallery.TransformSource = xslPath;
xmlGallery.TransformArgumentList = arguments;
xmlGallery.DataBind();
}
}
#endregion