Пример #1
0
        public static string GetUserJson(int UserId)
        {
            string str = ConfigurationManager.AppSettings["CollectUrl"].ToString() + "/Data/User/User" + (object)UserId + ".xml";

            if (Public.RemoteFileExists(str))
            {
                return(HtmlOperate.GetHtml(str));
            }
            return("");
        }
Пример #2
0
        public static string GetUserJson(int UserId)
        {
            string text = ConfigurationManager.AppSettings["CollectUrl"].ToString();

            text = string.Concat(new object[]
            {
                text,
                "/Data/User/User",
                UserId,
                ".xml"
            });
            string result;

            if (Public.RemoteFileExists(text))
            {
                string html = HtmlOperate.GetHtml(text);
                result = html;
            }
            else
            {
                result = "";
            }
            return(result);
        }