Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Htmlagilitypack -> getting a data-eventid

Posted on 2014-02-12
2
Medium Priority
?
307 Views
Last Modified: 2014-02-28
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
Comment
Question by:runnerjp2005
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 39853827
After using the SelectNode, you can use .Attributes property.
0
 

Author Closing Comment

by:runnerjp2005
ID: 39894316
A short simple answer :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Screencast - Getting to Know the Pipeline
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question