Thank you Bj, Tom and Howard.
As Tom said, I can use the extended SSI to know the name of the file. In ASP
too, we can obtain the name of the file by using
request.servervariables("URL"). So I thought of using this instead of the
page title.
Thank you again.
Amrit Hallan
������������������������������������������������������
Web Site Development - http://www.bytesworth.com
Copywriting and Copy Editing - http://www.amrithallan.com
������������������������������������������������������
WebDevE-Publication: [EMAIL PROTECTED]
----- Original Message -----
From: "Cyberspace Publishing" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 11:09 PM
Subject: [wdvltalk] Re: Title in ASP
> Amrit, I don't 'do' ASP, so I can't help there, but what you are
> asking can easily be done with extended SSI calls like this:
>
> <!--#if expr="${DOCUMENT_NAME} != index.shtml" -->
> <a href="/index.shtml"><img src="indeximage.gif" border="0" width="100"
> height="23" alt="Home"></a>
> <!--#else -->
> <img src="indeximage.gif" border="0" width="100" height="23"
alt="Home">
> <!--#endif -->
>
> The code will display the image as a link if the page's filename is
> anything except 'index.shtml', and will only display the image
> (without the link code) if the loaded page's filename actually *is*
> 'index.shtml'.
>
> Cheers,
> Tom Fosson
>
> At 09:25 PM 09/06/2002 +0530, you wrote:
> >I had sent a post but it bounced back.
> >
> >In JavaScript, we can get the title of a particular page from
> >document.title. How can we do it in ASP? I want to write a navigation bar
in
> >ASP and I don't want the buttons to be active if they are of a certainly
> >titled page. I don't want to JavaScript.
> >
> >Thanks.
> >
> >Amrit Hallan
>
>
> ____ . The WDVL Discussion List from WDVL.COM . ____
> To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
> Send Your Posts To: [EMAIL PROTECTED]
> To change subscription settings to the wdvltalk digest version:
> http://wdvl.internet.com/WDVL/Forum/#sub
>
> ________________ http://www.wdvl.com _______________________
>
> You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to %%email.unsub%%
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.385 / Virus Database: 217 - Release Date: 9/4/2002
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]