0

I have downloaded a json data from an url and deserializing it to a class.

 expense = wc.DownloadString(url);
 Rec obj = JsonConvert.DeserializeObject<Rec>(expense);

The class is,

public class Rec
    {
        public string BillNo { get; set; }
        public string Date { get; set; }
    }

The 'BillNo' is in anchor format. I need loop through each rows to get specific values from the anchor tag. The anchor tag is like mentioned below.

<a name="429" href="/pw/moneyout/vendor_detail.do?entityID=4090&action=ViewBill&recentItem=true&tabIndex=4&vendorLedgerView.month=3&vendorLedgerView.year=2016&itemID=877560220&ReportEntityID=6683">429</a>

From the above anchor tag i need the itemId value '877560220' and the inner text '429'. How to accomplish it in c#.

Ean
  • 17
  • 6

0 Answers0