Example #1
0
        public string TestHtmlLdate(string url)
        {
            DateTime answer;

            try
            {
                getHTML test = new getHTML("http://" + url + "/");
                answer = test.GetLDate();
            }
            catch
            {
                answer = default(DateTime);
            }
            return(new JavaScriptSerializer().Serialize(answer.ToString()));
        }
Example #2
0
        public string TestHtmlTitle(string url)
        {
            string answer;

            try
            {
                getHTML test = new getHTML("http://" + url + "/");
                answer = test.GetTitle();
            }
            catch
            {
                answer = "T T invalid URL!!!";
            }
            return(new JavaScriptSerializer().Serialize(answer));
        }
Example #3
0
 public string TestHtmlTitle(string url)
 {
     string answer;
     try
     {
         getHTML test = new getHTML("http://" + url + "/");
         answer = test.GetTitle();
     }
     catch
     {
         answer = "T T invalid URL!!!";
     }
     return new JavaScriptSerializer().Serialize(answer);
 }
Example #4
0
 public string TestHtmlLdate(string url)
 {
     DateTime answer;
     try
     {
         getHTML test = new getHTML("http://" + url + "/");
         answer = test.GetLDate();
     }
     catch
     {
         answer = default(DateTime);
     }
     return new JavaScriptSerializer().Serialize(answer.ToString());
 }