TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sravan Kumar Reddy Dudyalu
NA
1.5k
797.9k
Getting the CSS class name from HTML doc using C#
Jan 9 2017 1:28 PM
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.
Reply
Answers (
1
)
C# recyclerview card in fragment doesnt respond to click
combo box control