I'm using VB.NET 2003 if that makes any difference...
I have been searching around for how to do this for a while now and I just can't seem to get anything to work (well except for one part... which I will detail further down).
What I am trying to do is read data from a table on a web page where a login is required.
Before I can even get to that data I have to login to the website, which is where I run into my first problem... I can setup the request just fine and I've tried setting the credentials using System.Net.NetworkCredentials("username","password") but it never logs me in properly and I only end up getting a read on the login page no successful/failed login at all.
As I've already said I got the read of the page down, just not the page I want... This part probably can be answered by the credentials part above, but do I give the request the page I want first and the login credentials works and brings me to the proper page or do I have to go to the login page then force the request to go to the page I want?
Once I have the page's html into a string variable how do i get the data out of the specific table? The table is always in the same spot, always has the same header information with changing information after that. I can deal with the data once I get it separated just don't know how to separate it easily.
In short any code samples for logging into a web site where networkcredentials doesn't work or an explanation of how to make networkcredentials work on any site would be great. Also, a code sample of how to read each column of each row of a html table. With those 2 code samples I can probably work it out myself.
Feel free to ask questions for more details or point me in the proper direction for where to look for this stuff. Please don't get mad and say "search could find this all for you" as I have no idea what to search for and I'm getting pretty tired/frustrated with not being able to find what I want.
I have been searching around for how to do this for a while now and I just can't seem to get anything to work (well except for one part... which I will detail further down).
What I am trying to do is read data from a table on a web page where a login is required.
Before I can even get to that data I have to login to the website, which is where I run into my first problem... I can setup the request just fine and I've tried setting the credentials using System.Net.NetworkCredentials("username","password") but it never logs me in properly and I only end up getting a read on the login page no successful/failed login at all.
As I've already said I got the read of the page down, just not the page I want... This part probably can be answered by the credentials part above, but do I give the request the page I want first and the login credentials works and brings me to the proper page or do I have to go to the login page then force the request to go to the page I want?
Once I have the page's html into a string variable how do i get the data out of the specific table? The table is always in the same spot, always has the same header information with changing information after that. I can deal with the data once I get it separated just don't know how to separate it easily.
In short any code samples for logging into a web site where networkcredentials doesn't work or an explanation of how to make networkcredentials work on any site would be great. Also, a code sample of how to read each column of each row of a html table. With those 2 code samples I can probably work it out myself.
Feel free to ask questions for more details or point me in the proper direction for where to look for this stuff. Please don't get mad and say "search could find this all for you" as I have no idea what to search for and I'm getting pretty tired/frustrated with not being able to find what I want.