[allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => ilancen_spam [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> > > > > Dakota Pastels - Carand'Ache > > > > > > > >[/ref] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Murray [ip] => forums@HAHAgrea [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> Template on Save Removes Code on All Pages - Macromedia Dynamic HTML

Template on Save Removes Code on All Pages - Macromedia Dynamic HTML

I'll try to explain this the best that I can as I am only working on the front end of the site. We have built a site based on a template that I created. All pages have been built based on that template. The site uses a SQL database to propagate a listing depending on what page you are on. That info comes from a string of code that sits at the very top of the html (aspx) code. When I make changes to the master template, it updates all of the pages and removes or should I say rewrites ...

  1. #1

    Default Template on Save Removes Code on All Pages

    I'll try to explain this the best that I can as I am only working on the front
    end of the site. We have built a site based on a template that I created. All
    pages have been built based on that template. The site uses a SQL database to
    propagate a listing depending on what page you are on. That info comes from a
    string of code that sits at the very top of the html (aspx) code. When I make
    changes to the master template, it updates all of the pages and removes or
    should I say rewrites all of the code before the template info begins. I've
    tried to make an editable region at the very top of the page but I get an error
    because it's outside of the template begin code. Here's an example of the code
    that is being removed after making changes to the template: (thanks in advance)!

    <% Page Language="C#" AutoEventWireup="true"
    CodeFile="oilpastels-neocolor.aspx.cs" Inherits="pages_oilpastels_neocolor" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin
    template="/Templates/site-template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; cht=UTF-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Dakota Pastels - Carand'Ache</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
    <link href="../includes/dakota.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }
    -->
    </style></head>

    <body>


    ilancen_spam Guest

  2. #2

    Default Re: Template on Save Removes Code on All Pages

    DW and ASP.NET are not a smooth marriage - in fact ASP.NET support is being
    removed in the next version of DW.

    So - which code is being removed? The entirety of what you have posted
    below?

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
    ==================


    "ilancen_spam" <com> wrote in message
    news:g4eb4m$mqv$macromedia.com... 

    Murray Guest

  3. #3

    Default Re: Template on Save Removes Code on All Pages

    Ugh! No, it's just the line(s) above !DOCTYPE
    Thanks!
    ilancen_spam Guest

  4. #4

    Default Re: Template on Save Removes Code on All Pages

    I found a solution on another board. Simply placing <%--'comment--%> after the
    (lines of) code that I want to keep above !DOCTYPE, keeps Dreamweaver from
    removing it when updating the template. Hope this helps someone else.

    Cheers!

    ilancen_spam Guest

  5. #5

    Default Re: Template on Save Removes Code on All Pages

    Strange fix. I'm glad you found it!

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
    ==================


    "ilancen_spam" <com> wrote in message
    news:g4eucs$ch3$macromedia.com... 

    Murray Guest

  6. #6

    Default Re: Template on Save Removes Code on All Pages

    Thank you for this solution. One question, when I used the code as you posted
    it I got the following error:
    Expected statement
    /info_request.asp, line 530
    --'comment--
    There is also a small arrow pointing up to the first hyphen and in the code
    the statement is surrounded by <% and %>.

    Khurlz Guest

Similar Threads

  1. Default Save (Ctrl + S) Shows Save as Template
    By gwc webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 0
    Last Post: July 23rd, 05:36 PM
  2. Fitting the asp code in a page inside the asp code in a template
    By rogerwithnell webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 3
    Last Post: July 17th, 11:29 AM

Bookmarks

Posting Permissions

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