Skip to main content
Inspiring
August 25, 2006
Question

Retrieving Page Name in ASP?

  • August 25, 2006
  • 1 reply
  • 313 views
Hi,

Im currently building a small feature on my clients website which enables users to send any page to a friend. This is done using a text link that submits a form that calls the server variable 'url'. Now this part works fine but when i send the email i would like people to see the page name and not the actual url of the page.

Is there any way to retrieve the title tag in a document and put that into a hidden field ?

Thanks in advance, Adam
This topic has been closed for replies.

1 reply

Inspiring
August 25, 2006
Yes, use a regex string to search for the <title></title> tags.

"muzicmistro" <webforumsuser@macromedia.com> wrote in message
news:ecmoid$6sj$1@forums.macromedia.com...
> Hi,
>
> Im currently building a small feature on my clients website which enables
> users to send any page to a friend. This is done using a text link that
> submits
> a form that calls the server variable 'url'. Now this part works fine but
> when
> i send the email i would like people to see the page name and not the
> actual
> url of the page.
>
> Is there any way to retrieve the title tag in a document and put that into
> a
> hidden field ?
>
> Thanks in advance, Adam
>