ASP Code inside Templates

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default ASP Code inside Templates

    when you create a parent template and stamp out a few child pages does DW still let you change ASP code outside the HTML tags in the parent and have it propigate to all the children???
    Shmooter Guest

  2. Similar Questions and Discussions

    1. Golf Scoring Code/Templates
      Does anyone know where I can find code that will help me build a golf scoring and tracking site? I would like to track golf scores by team,...
    2. Parsing CF Code Inside A Variable
      As far as I know this 'should' be possible. Here's the situation: I have a website where lengthy HTML formatted descriptions are stored in a...
    3. passing code inside function
      I would like to read something about passing code inside function. Lets say that: This works: perl -e 'sub a(&){print(&{$_}, "/n"};$_=0; a...
    4. Can you use Keyword {Next} for isPastCuePoint()? [code inside]
      Why won't this work? It doesn't generate an error, but it just doesn't work like I'd think. If I go into a tempo channel and wait for cue points, at...
    5. Fitting the asp code in a page inside the asp code in a template
      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...
  3. #2

    Default Re: ASP Code inside Templates

    Only if you make that region a locked region, which would mean that none of
    your child pages could carry unique VBScript.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Shmooter" <webforumsuser@macromedia.com> wrote in message
    news:d2ijd2$5f3$1@forums.macromedia.com...
    > when you create a parent template and stamp out a few child pages does DW
    > still let you change ASP code outside the HTML tags in the parent and have
    > it propigate to all the children???

    Murray *TMM* Guest

  4. #3

    Default Re: ASP Code inside Templates

    that sucks. so what would be the best way to go about it. Perfect the asp code before stamping out child pages?????what do you think?
    Shmooter Guest

  5. #4

    Default Re: ASP Code inside Templates

    If the code is to be used on all pages then use server side includes to carry
    the code. That way your template only needs to have the link to the include
    file which then contains your code. <!-- Start general asp code -->
    <!--#include virtual='/generalaspcode.asp' --> <!-- End general asp code -->
    That way all you need to do is change the 'generalaspcode.asp' and put it on
    the site and the changes are there. Hope this helps.

    boy mackman Guest

  6. #5

    Default Re: ASP Code inside Templates

    That is perfect....i use them frequently yet i didn't think to do it your a champ.thanks
    Shmooter Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139