Is there a more efficient way to retrieve tables from websites using wpf + webclient
Posted
by
Jordan Brooker
on Stack Overflow
See other posts from Stack Overflow
or by Jordan Brooker
Published on 2012-05-31T22:34:06Z
Indexed on
2012/05/31
22:40 UTC
Read the original article
Hit count: 246
new to the community, but here is my first question that I am stuck on. I am new to WPF and WebClient using c# and I am attempting to make a program that access www.nba.com to populate a combobox I have with team names, and then when a user selects a team from the combobox, I wanted to populate a portion of the main window with the roster from the teams home site, same style and eveything. I was able to populate the combobox using the WebClient.OpenRead and reading in the markup to extract the team names.
Now I am on the more difficult part. I was planning on using the same method to grab all the markup and then somehow display the table in a content panel, but I feel that this is a very tedious thing to do. Can anyone give me any tips for completing this action or is there a method in the webclient class that allows me to search a webpage for a table or object other than text? Thanks.
© Stack Overflow or respective owner