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())); }
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)); }
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); }
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()); }