After jquery updates, how do I receive HtmlDocument? (HtmlAgilityPack)

c# html-agility-pack jquery

Question

Is it possible to get HtmlDocument after jQuery changes? For example, get element by 'myId' after the next change.

The js code:

$(document).ready(function () 
{
    $("#myContainer").html("<div id='myId'></div>");
});

The C# code:

var doc = new HtmlDocument();
...
doc.GetElementbyId("myId");

How?

1
1
5/23/2012 6:40:04 PM

Popular Answer

You might be able to do that using a mix of HtmlAgilityPack and WebBrowser control. I think it's worth to take a look. You would load the html using WebBrowser and you'd parse it with HtmlDocument.

This Code Project article could be a good start point

3
5/23/2012 7:08:23 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow