📄 baseconfig.cs
字号:
//======================================================
//== (c)2008 aspxcms inc by NeTCMS v1.0 ==
//== Forum:bbs.aspxcms.com ==
//== Website:www.aspxcms.com ==
//======================================================
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Web;
namespace NetCMS.Config
{
public class BaseConfig
{
/// <summary>
/// 得到配置文件
/// </summary>
/// <param name="Item"></param>
/// <returns></returns>
public static string getConfigParamvalue(string Item)
{
return string.Empty;
}
/// <summary>
/// 读netcms.config取配置文件
/// </summary>
/// <param name="Target"></param>
/// <returns></returns>
static internal string GetConfigValue(string Target)
{
string path = HttpContext.Current.Server.MapPath("~/xml/sys/netcms.config");
return GetConfigValue(Target, path);
}
/// <summary>
/// 读netcms.config取配置文件
/// </summary>
/// <param name="Target"></param>
/// <param name="ConfigPathName"></param>
/// <returns></returns>
static internal string GetConfigValue(string Target, string XmlPath)
{
System.Xml.XmlDocument xdoc = new XmlDocument();
xdoc.Load(XmlPath);
XmlElement root = xdoc.DocumentElement;
XmlNodeList elemList = root.GetElementsByTagName(Target);
return elemList[0].InnerXml;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -