2

i have html string reside in files in the server and for each user request i have to select some markup with ID from mentioned files and send them to the client.i wonder, is there any library for .NET which can do this sort of job for me!?. what exactly i want to achieve is some thing like this (with Jquery):

var sometag = $("#id");

thanks in advance.

2 Answers 2

5

You might want to check out CsQuery.

CsQuery is a jQuery port for .NET 4. It implements all CSS2 & CSS3 selectors, all the DOM manipulation methods of jQuery, and some of the utility methods. The majority of the jQuery test suite (as of 1.6.2) has been ported to C#.

Sign up to request clarification or add additional context in comments.

Comments

1

Try HTML Agility Pack. I need 7 more characters to post.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.