This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > November 2004 > ASP and Template Pages
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
ASP and Template Pages
|
|
| animalraw 2004-11-16, 6:46 pm |
| Hello,
I'm currently working on a school intranet site and would like to display the
current user that?s logged on within every page.
A colleague has given me the asp code which worked on the old version of the
intranet but now I've tried to incorporate it into my version on the main
template file it doesn't seem to work. I've been told this is because the page
needs to be a .asp file - however this means that it can't be a template file
(.dwt) and therefore I can't use it as a template.
Can asp be used within a template file situation?
Or will I manually have to go through every single page altering it and saving
them all as .asp extensions?
Any help will gratefully received!
Thank you in advance,
Adam.
| |
| Murray *TMM* 2004-11-16, 6:46 pm |
| > Can asp be used within a template file situation?
Certainly.
> Or will I manually have to go through every single page altering it and
> saving
> them all as .asp extensions?
You will need to do two things -
1. Add a VBScript header to each such page -
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
and
2. Use DW's file manager to rename each such page, allowing the links to be
updated.
When you spawn a child page from an ordinary *.dwt Template, DW assumes that
the child will be a plain HTML page and makes no special modifications to
the code. If you then use DW's Applications panel to add a recordset or a
ServerBehavior to the page, this language header will be automatically
inserted. If all you are doing is just pasting VBScript into the page, then
you will have to add that header manually.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"animalraw" <webforumsuser@macromedia.com> wrote in message
news:cmt19u$1sj$1@forums.macromedia.com...
> Hello,
>
> I'm currently working on a school intranet site and would like to display
> the
> current user that?s logged on within every page.
>
> A colleague has given me the asp code which worked on the old version of
> the
> intranet but now I've tried to incorporate it into my version on the main
> template file it doesn't seem to work. I've been told this is because the
> page
> needs to be a .asp file - however this means that it can't be a template
> file
> (.dwt) and therefore I can't use it as a template.
>
> Can asp be used within a template file situation?
> Or will I manually have to go through every single page altering it and
> saving
> them all as .asp extensions?
>
> Any help will gratefully received!
> Thank you in advance,
>
> Adam.
>
>
| |
| animalraw 2004-11-16, 6:47 pm |
| thankyou very much for everything...
but where is the file manager located? i can't seem to see it!
thanks, adam.
| |
| Murray *TMM* 2004-11-16, 6:47 pm |
| File panel. It's the Panel that shows the local/remote files.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"animalraw" <webforumsuser@macromedia.com> wrote in message
news:cmt5k1$7c6$1@forums.macromedia.com...
> thankyou very much for everything...
> but where is the file manager located? i can't seem to see it!
>
> thanks, adam.
| |
| animalraw 2004-11-16, 6:47 pm |
| woooo! it works now!! many thanks!
adam.:D
| |
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|