Getting Title of a HTML Page

L

Lalit Bhatia

I have created a page that contain a link of another page.
I want to get the title of that page.
Is there any way to get title of that page?
 
J

Jacob

You can have your code read the other page's markup and find the title
tag and extract the contents. That would probably be the easiest.
 
L

Lalit Bhatia

how can I read the markup of other page that I get at run-time?

Can you give an example?
 
J

Jacob

I'm not going to write it up for you. But create a WebRequest to get
the page and then read the ResponseStream and (using Regular
Expressions?) grab what is between <title></title>.

You could conceivably cast the response as an HTMLDocument and then use
the framework tools for working with HTMLDocuments.
 
S

sloan

Find a post from me

How to screen scrape for results?

or

Re: How to screen scrape for results?



within the past week .. and I posted some code there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top