本文整理汇总了C#中SageFrame.Web.SageFrameConfig.GetApplicationInfo方法的典型用法代码示例。如果您正苦于以下问题:C# SageFrameConfig.GetApplicationInfo方法的具体用法?C# SageFrameConfig.GetApplicationInfo怎么用?C# SageFrameConfig.GetApplicationInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SageFrame.Web.SageFrameConfig
的用法示例。
在下文中一共展示了SageFrameConfig.GetApplicationInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetPageHelpMessage
private void GetPageHelpMessage()
{
try
{
XmlDocument doc = new XmlDocument();
string xmlPath = HttpContext.Current.Server.MapPath("~/XMLMessage/SageXML." + GetCurrentCultureName + ".xml");
if (!File.Exists(xmlPath))
xmlPath = HttpContext.Current.Server.MapPath("~/XMLMessage/SageAdminHelpText.xml");
doc.Load(xmlPath);
string URL = Request.Url.ToString().Split('?')[0];
pageName = GetPageSEOName(URL);
lnkpage.Text = "Documentation on " + pageName;
string navigateURL = "http://www.aspxcommerce.com/Page-Documentation.aspx?pageName=" + pageName;
SageFrameConfig objSageConfig = new SageFrameConfig();
ApplicationInfo objApplication = objSageConfig.GetApplicationInfo("SageFrame");
if (objApplication != null)
{
navigateURL += objApplication.ApplicationId.ToString();
}
lnkpage.NavigateUrl = navigateURL + "&V=3.0";
XmlNode root = doc.DocumentElement;
XmlNode pageNode = root.SelectSingleNode(pageName.ToLower());
if (pageNode != null)
{
BindPageHelpHtml(pageNode);
}
else {
string defaultMsg = "";
defaultMsg = "This is a newly created page.If you want to have help notification for this page go to filemanager and update in SageAdminHelpText.xml file.";
StringBuilder description = new StringBuilder();
description.Append("<div class='sfHorTabContentHolder' id='sfHorTabContentHolder_");
description.Append("'><p>");
description.Append(defaultMsg);
description.Append("</p></div>");
ltrPageHelp.Text = description.ToString();
}
}
catch (Exception ex)
{
ProcessException(ex);
}
}