How to stop Dreamweaver overwriting my page declarations

Sorry to bring this one up again because I thought I got a successful answer but it seems not.
I'm using Dreamweaver's template system and I'm encountering a mind blowing problem. When I make any global changes to my site Dreamweaver defaults all my page declarations.
EG. I manually set a pages declaration to:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="someCodeBehind.aspx.cs" Inherits="_Default" %>
And after a global change is made this is defaulted back to:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
Causing major problems.
In the past somebody on this forum advised I wrap the declaration in all the templates as follows:
@@('<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>')@@
Which, in theory, should cause Dreamweaver to ignore the declarations when a global change is made and leave my website page declarations untouched.
Unfortunately this is not the case and Dreamweaver is still trashing them.
This is pretty monster urgent and I would be extremely grateful if anybody could suggest a way to stop Dreamweaver undoing my work.
Big thanks in advance,
@ndy.

Found the answer, if anybody is interested.
To stop Dreamweaver automatically defaulting your page directives when a template roles out a global change simply put a comment line after your page directive with in your web page, not the master .dwt. No need to set codeOutsideHTMLIsLocked to true or anything.
EG:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="someCodeBehind.aspx.cs" Inherits="_Default" %>
<%--'comment--%>
For some reason this stops Dreamweaver from touching the directive.
Go figure..!?!?!?!?
Hope this helps someone out in the future.

Similar Messages

  • How to stop advertisement hijacking firefox page almost all websites get hack

    how to stop advertisement hijacking firefox page , some Powered Lotu advertisment or such kind of stuff hijack my complete web page. I have always click skip on that. Just in case I missed that , then I would be taken to some other websties
    == This happened ==
    Not sure how often
    == Last 3-4 months

    <u>'''Scan for malware'''</u>
    Install, update and run these programs <u>in this order</u>. They are all free for personal use, but some have limited functionality in the "free mode", but those are features you really don't need to find and remove the problem that you have. (<u>'''Not all programs detect the same Malware.'''</u>)
    Malwarebytes' Anti-Malware - http://www.malwarebytes.org/mbam.php
    SuperAntispyware - http://www.superantispyware.com/
    AdAware - http://www.lavasoftusa.com/software/adaware/
    Spybot Search & Destroy - http://www.safer-networking.org/en/index.html
    Windows Defender - http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    Dr. Web Cureit - http://www.freedrweb.com/cureit/
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help:
    http://bleepingcomputer.com
    http://www.spywareinfoforum.com/
    http://www.spywarewarrior.com/index.php
    http://forum.aumha.org/

  • How to Stop HP C5580 printis page containing the filename, directory etc along with my primary doc

    HP C5580 All In One Printer started printing an additonal page document properties every time i print my master document.  This never happened before and i can't figure out how to stop it...it's waisting paper and ink.  Please Help
    Windows XP Version 5.1.2600 Service Pack 3 Build 2600
    Computer System Manufacturer Dell Inc.
    Time Zone Eastern Daylight Time

    Are you printing from Word?  Generally Word has an option to print document properties, which would include the date created, the edit date, number of words and some other information.  In Word 2003 this would be found in Tools, Options, Print, Include with Document and uncheck the "Document Properties" box.  In Word 2010 it would be found in File, Options, Display, Printing Options, Print document properties.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How to stop Safari from realoading page and worst, start at the TOP?

    When clicking something, for example an article in an online newspaper, after reading, when you scroll back to the newspaper, Safari reloads and starts at the TOP of the page. This drives me crazy, and I have to work hard to figure out were I was in the very long frontpage of the online newspaper. Please help!
    PS! Opera DOES NOT do this. So I want Safari to behave like Opera :-)
    But Opera is not as good on a Mac as on a PC (I tried), so I have to use Safari, and therefore needs to figure this out.
    Please help! :-)

    This Apple-forum we now are using are a great example of the how totally useless Safari is.
    I tried to find answer for my question, and pressed "more" at the bottom of the page, and then "more" again and again until I found something interesting i want to read. So I was a bit down in the forum frontpage. Opened the forum-post, read and used mouse gestures to get back to the forum.
    Safari reloaded and startet at the top of the page, so now I must scroll down and press "more", scroll down again and press "more" again, scroll and press "more" and then once again, just to get where I was in the first place!!!
    Well, I am speachless. If this problem is unsolvable, I have no other choice than find another browser to use. This is just too stupid and it drives me crazy!
    So, you kind people out there, this is really an emergency.
    And if Apple-staff are reading this, well, you now know what you have to do, fix it immediately!

  • Using Spry how to stop Dreamweaver CS3 from Changing Code

    Hi
      I am using Dreamweaver CS3 to build/maintain a website www.ghoter.net. I started using Spry to insert data from an xml file as I need the data in the xml file to show up on several different pages, includeing the home page. The data in the xml file changes from time to time. This is working wery well. But I am having a problem with Dreamweaver automaticly  changing a line of code in the html files every time I make a change to the html file. The line of code that is being changed is in the head of the program.
    This is the line of code that is being changed: The xml's name is data-3.xml The date from the xml file goes at the top of the left collumn.
    The good code is:  var ds1 = new Spry.Data.XMLDataSet("data-3.xml", "customers/customer",{distinctOnLoad:true});
    The above line of code is automaticly being changed to this below, which does not work:
    var ds1 = new Spry.Data.XMLDataSet("data-3.xml", "customers/customer",<MM:BeginLock translatorClass="MM_SPRY" type="MM_SPRY_DATA_REFERENCE" orig="{distinctOnLoad:true}" ><MM_DYNAMIC_CONTENT DYNAMICDATA=1><MM:DECORATION HILITECOLOR="Dyn Untranslated Color">{distinctOnLoad:true}</MM:DECORATION></MM_DYNAMIC_CONTENT></script><MM:EndLock>);
    I can replace the bad line of code with the good code just befor saving the html file and the good line of code will be saved with the file and the web page works as it should.
    Any help would be appricated. Thanks
    Jack Burn

    Hi Jack,
    I think (not sure though) that the Library Item is causing the problem. I never use the Library Item because server side includes are far more efficient and need less maintenance.
    Have a look here http://foundationphp.com/tutorials/sprymenu/ssi.php
    If you have PHP serverside scripting language, use DW to add serverside includes using PHP.
    Getting back to your original problem, try without the Library Item and see if DW still changes the code.
    I hope this helps.
    Ben

  • How to Stop Dreamweaver CC Obtrusive Dialogs

    Issue: Dreamweaver dialogs (e.g. search, background activity, search) always remain on top of the GUI stack on Mac.
    Description: While I'm waiting for files to upload/download, I often wish to browse the Internet or work in another application. Unfortunately, Dreamweaver's Background Activity Window insists on being on top obscuring the browser requiring me to move or collapse it every time. Same for other dialogs, such as Dreamweaver's search box. This is a change from earlier versions of DW and very annoying. I'm hoping there's a way to shut this off.

    Sounds like you would enjoy some more screen real estate.
    Is it time to consider an additional monitor? They're quite inexpensive now.

  • How to stop Dreamweaver Tabs from moving after restart?

    Hello.
    I am a PHP developer, and I find that tabs in Dreamweaver 8
    are very useful. Right now I have about 30 files, mostly PHP, some
    HTML and CSS open in tabs.
    I love the ability to move the tabs around all the time, as I
    see fit.
    However, one of the wost things I find about Dreamweaver 8
    is, once you close it and start it next time, and tabs are all
    jumbled up in the order they were opened, rather than in the order
    they were left at.
    Is there any way to prevent this jumbling up of tabs?
    Thanks.

    Those tabs represent the documents you have open currently.
    As you open a
    new document, it gets a new tab. You cannot move them, nor
    can you preserve
    them from one session to the next, other than by opening the
    same documents
    again in the same order (you can do this automatically with
    PREFERENCES |
    General > Reopen Documents on startup.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (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
    ==================
    "Starcraftmazter" <[email protected]> wrote
    in message
    news:e2g4go$7ov$[email protected]..
    > Hello delaneypub, thank you for your replies.
    >
    > Yes, by tabs I mean the ones holding the documents.
    > To further illustrate this, I uploaded the appropriate
    screenshot
    >
    http://www.filesnexus.com/file.php?file=m17n608F5nhEf7HOqbNP8JaWHHXO57s59SE6y6pN
    >
    > I see you are not sure if there is a way to dowhat I
    require.
    >
    > Thanks for your help none the less.
    >

  • Stop dreamweaver using split view

    Hi all,
    I love the fact that dreamweaver CS4 shows included files such as a style sheet when I open the main HTML file, anyone know how to stop dreamweaver using split view when I click on one of these included files? I never use / like split view.
    Thanks

    That's correct Brad.
    Thanks for the tips, especially right clicking to open as a separate file!
    I never noticed that it was only splitting the screen when I was in design view.
    I do actually use code view more than anything, I write PHP in dreamweaver and that is why I was getting annoyed, sometimes I can have several files included in a single PHP page, and flicking through them was getting annoying if the screen auto split .
    I actually discovered vertical split view and I like it a lot! Works really well on my dual monitor setup;code view on the left monitor, design view on the right.
    Still think there should be an option to disable auto split.

  • How to stop text box on iWeb page from automatically reverting to hyperlink when I click 'save'

    As far as I see, the main text box in the body section of my iWeb page reverts to a hyperlink (connecting to a file) when I click save.  I don't know how the hyperlink got activated to begin with--I must have done something, but I don't know what it was.  I tried this many times to fix it: went to Inspector "hyperlink" section, activated the text box in the page, un-clicked "make hyperlinks active" (so they are inactive), then un-clicked "Enable as a hyperlink."  That much works--the hyperlink (little white arrow in blue circle) disappears from the lower right corner of text box.  But as soon as I save (command S), the text box reverts to a hyperlink. 
    If I don't click save and move around the pages, it does not revert to a hyperlink.  It only reverts to a hyperlink when the file is saved.  Why is it doing this and how to stop this from happening--how to permanently return the text box to a non-hyperlink?
    The website page is: http://www.usronline.net/USR/VedicResearch.html.  If you click anywhere randomly in the main text, you'll get a prompt to download a PDF file.  This should not be, but I can't get this hyperlink to go away for good.
    Many thanks in advance.
    Vishnupriya

    Please pardon the reply delay--a big project deadline had to be met.  Now back to this work:
    Yes, the text in the oval object had a drop shadow (the oval object itself did not).  I removed the drop shadow from the text, but the image file icon stayed in the right corner of the oval object.  I deleted the text and then the image file icon disappeared.  But as soon as I typed text again inside the oval object (not even pasting the previous text) the image file icon appeared again.  I deleted the oval object entirely and simply typed the text inside the main text box itself.  The image file icon that was attached to that oval object is gone (along with the oval object).
    Still the image file icon is attached to the main text box, though.  I again tried to uncheck the Enable as hyperlink (same process as described in first posting) with that oval object gone, but when I "save" again it reverts to a hyperlink. 
    Next I tried this: I copied the text from the problem text box and pasted it into another text box (outside of the problem one).  Still in the new text box with the pasted text, the image file icon shows in the upper right corner. 
    I also removed all the drop shadow features from this main text box (there was one more, on some words typed in the main text box), but it is still showing as an image.
    I don't know how it became an image file, and I'm still stumped as to how to fix it (short of forgetting about trying to figure out how it became an image and just retyping all text into a new text box).
    The link you provided for "Web Safe Fonts" is returning this: "The server at www.ampsoft.net is taking too long to respond."  I'm using Arial and Georgia (Georgia only on the menu and header text) in the site, and I had verified before designing the site that these are web safe, so I had thought they were.
    If you or anyone have any further suggestions or suspicions on this matter, I'd be glad to hear them.
    Thank you.

  • How to stop the sites in the new tap page from auto connecting

    Once you move your mouse on any site in the top most sites you visit {new tap page}
    the browser is connecting to that site immediately
    That bothering me so much !
    How to stop that? :$
    Thanks in advance

    Other one thing
    ======
    New
    Improved search bar (en-US only)
    ======
    The old search bar was better
    Now we can't switch between search engines fast
    I switch between search engines hundred times every day :@
    Is there a way to restore the old bar :$

  • How to stop irritating auto-reloading of the tabs (pages) [i don't have any extensions or apps]

    Seems like this problem appeared quite often, nevertheless i spent an hour in search of an answer surfing the net, alas, nothing..
    Problem: since today Safari started to reload almost every single page whenever i switch between tabs or sometimes even while im stil on the page. Fot example - i'm watching a movie, stoped it - switched to facebook tab to reply to my friend, then back to the tab with the video & no sooner i get back as the page with video auto-refreshes itself & i have to load movie again & look for the place i stoped watching the video to continue!
    Device & program version: Macbook Pro, bought in july, Safari Version 5.1 (6534.50), No extensions or apps installed, & pls dont' say that it happens on particular pages, i visited the same ones yesterday & everything was ok, since today it's working all weird, and happens within all pages. But in the same time no system - once it reloads the page, other time im switching between the same very tabs it doesn't.
    This is unacceptable & completely useless. Why there are no comments from Apple or Safari team, as if the problem doesnt exist? Not speaking of the problem solving process or tips.
    Please, if someone knows how to stop this nightmare - tell me!!
    Apple-team, I would love to hear your comments & in fact receive some help and get this problem fixed.. :\
    (P.S. - person with the same problem posted a message year before, no effective reply.. - https://discussions.apple.com/thread/2356901?start=0&tstart=0 )
    Sincerily yours,
    Tatevik
    <Email Edited by Host>

    Macbook Pro, bought in july
    If your Mac is runing Lion v10.7 try disabling Resume.
    How To Disable Lion's 'Resume' Feature - MacRumors.com

  • How do I customize my html page in Dreamweaver CS5 to an Avery template that I wish to print out?

    How do I customize my html page in Dreamweaver CS5 to an Avery template that I wish to print out?

    Dreamweaver and websites do not easily match up to Avery templates.  If you are trying to develop a program for customers/etc to print labels, you should look for a script to generate a PDF file to ensure the accuracy of the printing.
    If you are trying to use Dreamweaver as a substitute to print your own labels, I would highly recommend using Microsoft Word, or Adobe InDesign for a better solution.

  • How to I get on to page 2 when my document stops at the page 1 layout line and won't go on to another page?

    How to I get on to page 2 when my document stops at the page 1 layout line and won't go on to another page?

    Sounds like you are using a Layout template. These you have to manually link from textbox to textbox.
    Try using a Word Processing template, it lists them in the sidebar of the Template Chooser.
    Peter

  • How to stop the Browser from caching my web pages

    Hi There
    Can anyone tell how to stop the browser from caching my jsp pages
    I am using
    <%response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    but this does not work anduser is able to go back to the previous page
    which i dont want and i want the browser to display the message the page has expired
    Help appreciated
    Thanks
    Mumtaz

    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("max-age", 0);
    response.setDateHeader("Expires", 0);
    I have cut paste the code from my jsp which is working. There is one additional line. I do not know if that is the cause but there is no harm in trying that out.
    Srinivasan Ranganathan

  • How to stop php file opening in Dreamweaver

    Hi,
    I have never used Dreamweaver and I am not using it at present, but after installing Xampp on my PC, the php files open in Dreamweaver. The pages are blank so cannot even be modified.  Is there a way I can stop these files opening in Dreamweaver?
    Any advise would be appreciated.
    thanks,
    je543

    Dreamweaver cannot open files if it is not installed.  Be sure to check the Windows programs or Applications folder on a Mac.  You can also run the Adobe Clean Script to remove all remnants of Adobe programs on your computer.
    http://www.adobe.com/support/contact/cscleanertool.html
    Alternatively you can always right click on a file in Windows or on a Mac and choose the associated program and change all files.  By default those files will open in a text editor unless an HTML editor is around.

Maybe you are looking for

  • Problems after upgrading to 10.5.2

    iv had some problems even since iv upgraded to 10.5.2 yesterday, everything seems to be wrong permissions, like when i need to move something or delete it, even when i have costume access i have to change "all" to "read and right" to get access. And

  • Setting chart as default output of a query

    When I run a query in out portal environment, I get the the table with data as a default result. I would like to change this and set the default output to either table and graphic or to chart. Is that even possible? I'm working with BW 7.0 templates.

  • Regarding slection-screen problem

    Hi,   I have one requirement in selection-screen.if I enter the period from 04  to 03 with fiscal year from 2006 to 2007 as in put parameters in selection-screen, getting error message as 'From period is greater than To period'. Can any body please r

  • User assignment to purchasing organisation and purchasing groups

    Dear Experts, My issue is related to user assignment to purchasing organisation and purchasing groups. According to the project requirement, we are using central purchasing organisation and we should create the purchasing organisations and purchasing

  • The Strange Case of the Missing Network Icon

    Can anyone help my buddy Tom - who is running a G4 iBook with OS X Panther? He is unable to get onto his wireless network and here is the problem in his own words: "Had a moment to muck about in the iBook drive, following data crumbs from the all-per