コード

3月 7th, 2010
foreach (HtmlElement he in html.All)
{
    if (he.TagName.ToLower().Equals("span"))
    {
        if (he.InnerText.IndexOf("Freesia") > -1)
        {
            HtmlElement table = he.NextSibling;
            lblMsg.Text = table.GetElementsByTagName("tr")[1].FirstChild.InnerText;
        }
    }
}

Posted in C#No Comments

Leave a Comment