Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Getting the CSS class name from HTML doc using C#
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Sravan Kumar Reddy Dudyalu
7 years ago
344
1
Reply
Can any one help me out how to get the CSS Class name or Style properties of a Text / Keyword from html document using <b>C#?</b>
Say I am passing the text "Sample Text" from code.
I have a html document which has following code
<pre lang="text"><div class="sampleclass">
Sample Text
</div></pre>
I need to get the result as sampleclass when Sample Text is passed.
What I have tried:
I have used HTMLAgility library , I can get the text based on class name but I need the other way around to get class name when text is passed.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
C# recyclerview card in fragment doesnt respond to click
combo box control