HighDots Forums  

Fitting the asp code in a page inside the asp code in a template

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Fitting the asp code in a page inside the asp code in a template in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rogerwithnell webforumsuser@macromedia.com
 
Posts: n/a

Default Fitting the asp code in a page inside the asp code in a template - 07-16-2003 , 06:36 PM






I'm adding code in a template which connects to the only database and also closes the connection.

Every page in the site uses the template and most of the pages in the site access the database. So I can strip out the database connection set up and closing out of each page because it will be in the template.

But the sequence has to be correct when the template is applied to the page: template code connects to database; page code uses database; template code closes database connection.

How do I make sure when I add the code to the template and update the pages that the code is in this order?







Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Fitting the asp code in a page inside the asp code in a template - 07-16-2003 , 06:53 PM






How many editable regions does your template have?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"rogerwithnell" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I'm adding code in a template which connects to the only database and also
closes the connection.

Every page in the site uses the template and most of the pages in the site
access the database. So I can strip out the database connection set up and
closing out of each page because it will be in the template.
Quote:
But the sequence has to be correct when the template is applied to the
page: template code connects to database; page code uses database; template
code closes database connection.
Quote:
How do I make sure when I add the code to the template and update the
pages that the code is in this order?









Reply With Quote
  #3  
Old   
rogerwithnell webforumsuser@macromedia.com
 
Posts: n/a

Default Re: Fitting the asp code in a page inside the asp code in a template - 07-17-2003 , 04:41 AM



The template has two editable regions.



Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Fitting the asp code in a page inside the asp code in a template - 07-17-2003 , 07:29 AM



roger:

Then you are likely to have a problem applying that template to pages since
you must put all the page's content into a single editable region.

A better way is to spawn a new page from the template, and copy and paste
from the existing page to the new page before saving the new page over the
old one. This way you get to place material in each editable region as
desired.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"rogerwithnell" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
The template has two editable regions.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.