Witam ponownie,
Co tu jest nie tak, że ten kod nie "wypisuje zawartości input formularza:
<form accept-charset="utf-8" method="post" action="/dalej" class="form_add">
<input name="title" value="" type="text">
<input name="pole1" value="http://www.xxxxx.com" type="hidden">
<input disabled="" name="pole2" value="jakies dane" type="text">
</form>
I kod C#
var doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(this.textBox2.Text);
HtmlNodeCollection rowNodes = doc.DocumentNode.SelectNodes("//form//input");
if(rowNodes == null) return;
foreach (HtmlNode input in rowNodes)
{
HtmlAttribute att = input.Attributes["value"];
if (att != null)
{
this.textBox2.AppendText(att.Value + "\r\n");
}
}
Wartość rowNodes jest null :(