void LoadArticle()
{
if (base.XSLTemplateID > 0 && base.ContainerValue > 0)
{
int PageSize = 10;
if (!string.IsNullOrEmpty(Attributes["PageSize"]))
{
PageSize = Convert.ToInt32(Attributes["PageSize"]);
}
int TotalCount = 0;
string articleXML = ArticleManager.GetArticlesPublishXML(base.ContainerValue, CMSContext.LanguageID, 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);
xmlArticle.DocumentContent = articleXML;
xmlArticle.TransformSource = xslPath;
xmlArticle.TransformArgumentList = arguments;
xmlArticle.DataBind();
}
}
#endregion