In javascript I can easily use JQuery to get css, for example:
$("#id").css();
I need to do the same in c#. Im getting the html source into string (usually parsing it with agility pack), and I need to get the css values of a specific htmlnode.
does a way doing so exist?
thanks.
Maybe this is what you are looking for–>HTML Element Class and HTML Element GetAttributes.
Although, I do suggest to use jquery as much as possible for this. HTML is more for UI, and C# code is usually more for business logic, so if you can avoid mixing this as much as possible, that is better 🙂