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