Getting Title of a HTML Page

  • Thread starter Thread starter Lalit Bhatia
  • Start date Start date
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?
 
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.
 
how can I read the markup of other page that I get at run-time?

Can you give an example?
 
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.
 
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

Back
Top