By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 883 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

ASP.net ques: Webpage data retrieval and parsing

P: n/a
Hi again, I am pretty new to ASP.net (I use to be a Visual Basic 6 addict)

I want to do the following but I have been unable to find good info/ or
sample code on it; please help;

- retrieve a webpage using ASP.net from another site (the url have
parameters like (domain.com/?date=january) in it if that makes a difference)

- using ASP.net code I want to Parse a table (perhaps using DomDocument
object?) I want to retrieve data from the table cell first by row and
then by column.
(retrieve the data to be store in data object)

- Then I want to use the data object to display the information retrieve in
webpage?
I am looking for sample codes, references or anything of that nature to help
me.
Thank you in advance. and please be as detail as you like.

Joe.

Nov 19 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Webzinc is a good component for parsing Web pages:

http://www.webzinc.net/online/menu/
"news.microsoft.com" <jt****@gmail.com> wrote in message
news:ed****************@TK2MSFTNGP12.phx.gbl...
Hi again, I am pretty new to ASP.net (I use to be a Visual Basic 6 addict)

I want to do the following but I have been unable to find good info/ or
sample code on it; please help;

- retrieve a webpage using ASP.net from another site (the url have
parameters like (domain.com/?date=january) in it if that makes a
difference)

- using ASP.net code I want to Parse a table (perhaps using DomDocument
object?) I want to retrieve data from the table cell first by row and
then by column.
(retrieve the data to be store in data object)

- Then I want to use the data object to display the information retrieve
in
webpage?
I am looking for sample codes, references or anything of that nature to
help
me.
Thank you in advance. and please be as detail as you like.

Joe.


Nov 19 '05 #2

P: n/a
I am looking for free tutorials, sample codes, references concerning my
questions.

I do hope ASP.net does have something free. Or else I might have to stick
with PHP. LOL
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:Op****************@TK2MSFTNGP10.phx.gbl...
Webzinc is a good component for parsing Web pages:

http://www.webzinc.net/online/menu/
"news.microsoft.com" <jt****@gmail.com> wrote in message
news:ed****************@TK2MSFTNGP12.phx.gbl...
Hi again, I am pretty new to ASP.net (I use to be a Visual Basic 6 addict)
I want to do the following but I have been unable to find good info/ or
sample code on it; please help;

- retrieve a webpage using ASP.net from another site (the url have
parameters like (domain.com/?date=january) in it if that makes a
difference)

- using ASP.net code I want to Parse a table (perhaps using DomDocument
object?) I want to retrieve data from the table cell first by row and
then by column.
(retrieve the data to be store in data object)

- Then I want to use the data object to display the information retrieve
in
webpage?
I am looking for sample codes, references or anything of that nature to
help
me.
Thank you in advance. and please be as detail as you like.

Joe.

Nov 19 '05 #3

P: n/a
news.microsoft.com wrote:
Hi again, I am pretty new to ASP.net (I use to be a Visual Basic 6
addict)

I want to do the following but I have been unable to find good info/
or sample code on it; please help;

- retrieve a webpage using ASP.net from another site (the url have
parameters like (domain.com/?date=january) in it if that makes a
difference)
Use System.Net.WebClient or System.Net.WebRequest.
- using ASP.net code I want to Parse a table (perhaps using
DomDocument object?) I want to retrieve data from the table cell
first by row and then by column.
(retrieve the data to be store in data object)


Use the HTML Agility Pack
(http://weblogs.asp.net/smourier/arch...6/04/8265.aspx)
Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #4

P: n/a
Is there sample projects that demonstrates how to use ASP.net to retrieve
webpages using this
Use System.Net.WebClient or System.Net.WebRequest.
There must be something....


"Joerg Jooss" <ne********@joergjooss.de> wrote in message
news:xn****************@msnews.microsoft.com... news.microsoft.com wrote:
Hi again, I am pretty new to ASP.net (I use to be a Visual Basic 6
addict)

I want to do the following but I have been unable to find good info/
or sample code on it; please help;

- retrieve a webpage using ASP.net from another site (the url have
parameters like (domain.com/?date=january) in it if that makes a
difference)


Use System.Net.WebClient or System.Net.WebRequest.
- using ASP.net code I want to Parse a table (perhaps using
DomDocument object?) I want to retrieve data from the table cell
first by row and then by column.
(retrieve the data to be store in data object)


Use the HTML Agility Pack
(http://weblogs.asp.net/smourier/arch...6/04/8265.aspx)
Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de

Nov 19 '05 #5

P: n/a
Hello,
Just follow the following..

1.
// Create the WebRequest for the URL eg www.domain.com/?date=january
WebRequest req = WebRequest.Create("www.domain.com/?date=january");

2.
// Get the stream from the returned web response
StreamReader stream = new
StreamReader(req.GetResponse().GetResponseStream() );

3.
// Get the Source of teh html page.
string HtmlSource = stream.ReadToEnd();

Now you have all the source of the HTML page. Just use the regular
expression and search in the page.

Hope it can be of any use for you.

Regards,
Rajesh Kumar

"news.microsoft.com" <jt****@gmail.com> wrote in message
news:ed****************@TK2MSFTNGP12.phx.gbl...
Hi again, I am pretty new to ASP.net (I use to be a Visual Basic 6 addict)

I want to do the following but I have been unable to find good info/ or
sample code on it; please help;

- retrieve a webpage using ASP.net from another site (the url have
parameters like (domain.com/?date=january) in it if that makes a
difference)

- using ASP.net code I want to Parse a table (perhaps using DomDocument
object?) I want to retrieve data from the table cell first by row and
then by column.
(retrieve the data to be store in data object)

- Then I want to use the data object to display the information retrieve
in
webpage?
I am looking for sample codes, references or anything of that nature to
help
me.
Thank you in advance. and please be as detail as you like.

Joe.

Nov 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.