Exemplo n.º 1
0
    protected void Execute_Analyze_Command_Click(object sender, EventArgs e)
    {
        string url = urlpath.Value;

        if (url.Length > 0)
        {
            summarylabel.Text  = "HTML Tag Summary";
            htmlcodelabel.Text = "HTML Source Code";

            HTMLAnalyzer analyzer = new HTMLAnalyzer(url);

            tagsummary.DataSource = analyzer.CountTags();
            tagsummary.DataBind();

            _html = Server.HtmlEncode(analyzer.getHtml());
            htmlsourcecode.Text = _html;
        }
    }
Exemplo n.º 2
0
    protected void Execute_Analyze_Command_Click(object sender, EventArgs e)
    {
        string url = urlpath.Value;

        if (url.Length > 0)
        {
            summarylabel.Text = "HTML Tag Summary";
            htmlcodelabel.Text = "HTML Source Code";

            HTMLAnalyzer analyzer = new HTMLAnalyzer(url);

            tagsummary.DataSource = analyzer.CountTags();
            tagsummary.DataBind();

            _html = Server.HtmlEncode(analyzer.getHtml());
            htmlsourcecode.Text = _html;
        }
    }