Example #1
0
        //子配置取指定值
        public static string GetSub(string p_strVal, string xmlPath)
        {
            ub XmlStr = new ub();

            XmlStr.ReloadSub(xmlPath); //加载子配置
            try
            {
                return(XmlStr.dss[p_strVal].ToString());
            }
            catch
            {
                return("");
            }
        }
Example #2
0
        //网站配置取指定值
        public static string Get(string p_strVal)
        {
            ub XmlStr = new ub();

            XmlStr.Reload(); //加载网站配置
            try
            {
                return(XmlStr.ds[p_strVal].ToString());
            }
            catch
            {
                return("未配置");
            }
        }