Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

Htmlagilitypack -> getting a data-eventid

Hi,

is it possible using htmlagaility pack to get the following

<div class="match event-information ui-event ui-27147167 ui-market ui-924_8157131 ui-no-status-message" data-eventId="27147167" data-marketId="924.8157131">

Open in new window


I have a loop that goes through a list of matches and i need to get the value data-eventId.

I would also need to search where class begins with match event-information as i wont have the event id to call the rest.
0
runnerjp2005
Asked:
runnerjp2005
1 Solution
 
CodeCruiserCommented:
After using the SelectNode, you can use .Attributes property.
0
 
runnerjp2005Author Commented:
A short simple answer :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now