Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Cannot get all input, textarea, option of form

$
0
0

Hi all

I want to get get all input, textarea, option of http://diendan.yeutretho.com/register.php form but it return null. This is my code

HtmlAgilityPack.HtmlWeb web = new HtmlWeb();           

HtmlAgilityPack.HtmlDocument htmlDoc = web.Load("http://diendan.yeutretho.com/register.php");         

var forms = htmlDoc.DocumentNode.Descendants("form");           

foreach (var form in forms)           

{               

if (form.Attributes["name"] != null && form.Attributes["name"].Value == "register")                {                   

Console.WriteLine(  form.InnerHtml );                   

}

 }

Pls help me to get all input, textarea, select of HTML Form

Best Regards

Nam

truongthanhnam@gmail.com

skype: nam.truongthanh


Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>