473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Problem using 'include directive' in ASP

I have been creating an ASP site using Dreamweaver MX.
I have 2 ASP files, these are "index.asp" and "backend.asp"
The "backend.asp" contains all of the relevant code needed to connect to the
database ("cdshop.mdb").
While I intend the "index.asp" to be the main page that is viewed by the
visitor - this will include all the SQL statements.

When I use the following code "<!--#include file="backend.asp"-->" in the
"index.asp" It removes all the formatting in the document (i.e tables &
cells) in the Dreamweaver 'design view'.

If I attempt to do anything in the 'design view' Dreamweaver returns the
following error:
"Making this change would require changing code that is locked by a template
or a translator. The change will be discarded.

Can anyone explain why I am getting this error???
Thanks

P.S I am not using any templates so cannot understand this error.
Jul 19 '05 #1
4 3270
To Macromedia, who also owns Cold Fusion, EVERYTHING with code in it is a
"template". In Homesite and Cold Fusion the design tab should be disabled
if there's anything in the page other than HTML - Codesweeper can really
muck up ASP code (my language of choice). I would guess the same applies to
Dreamweaver, though YMMV.

- Wm

"*** HAWK" <no*********@INVALID.mail.com.Invalid> wrote in message
news:3f***********************@news.dial.pipex.com ...
I have been creating an ASP site using Dreamweaver MX.
I have 2 ASP files, these are "index.asp" and "backend.asp"
The "backend.asp" contains all of the relevant code needed to connect to the database ("cdshop.mdb").
While I intend the "index.asp" to be the main page that is viewed by the
visitor - this will include all the SQL statements.

When I use the following code "<!--#include file="backend.asp"-->" in the
"index.asp" It removes all the formatting in the document (i.e tables &
cells) in the Dreamweaver 'design view'.

If I attempt to do anything in the 'design view' Dreamweaver returns the
following error:
"Making this change would require changing code that is locked by a template or a translator. The change will be discarded.

Can anyone explain why I am getting this error???
Thanks

P.S I am not using any templates so cannot understand this error.

Jul 19 '05 #2
Anyone else have any idea why I get this error & for what reason it alters
all of my table formatting?
This is really frustrating :-(
"William Morris" <NO**************@seamlyne.com> wrote in message
news:bp*************@ID-205671.news.uni-berlin.de...
To Macromedia, who also owns Cold Fusion, EVERYTHING with code in it is a
"template". In Homesite and Cold Fusion the design tab should be disabled
if there's anything in the page other than HTML - Codesweeper can really
muck up ASP code (my language of choice). I would guess the same applies to Dreamweaver, though YMMV.

- Wm

"*** HAWK" <no*********@INVALID.mail.com.Invalid> wrote in message
news:3f***********************@news.dial.pipex.com ...
I have been creating an ASP site using Dreamweaver MX.
I have 2 ASP files, these are "index.asp" and "backend.asp"
The "backend.asp" contains all of the relevant code needed to connect to

the
database ("cdshop.mdb").
While I intend the "index.asp" to be the main page that is viewed by the
visitor - this will include all the SQL statements.

When I use the following code "<!--#include file="backend.asp"-->" in the "index.asp" It removes all the formatting in the document (i.e tables &
cells) in the Dreamweaver 'design view'.

If I attempt to do anything in the 'design view' Dreamweaver returns the
following error:
"Making this change would require changing code that is locked by a

template
or a translator. The change will be discarded.

Can anyone explain why I am getting this error???
Thanks

P.S I am not using any templates so cannot understand this error.


Jul 19 '05 #3
Maybe a DreamWeaver group would be more helpful.

Bob Lehmann

"*** HAWK" <no*********@INVALID.mail.com.Invalid> wrote in message
news:3f***********************@news.dial.pipex.com ...
I have been creating an ASP site using Dreamweaver MX.
I have 2 ASP files, these are "index.asp" and "backend.asp"
The "backend.asp" contains all of the relevant code needed to connect to the database ("cdshop.mdb").
While I intend the "index.asp" to be the main page that is viewed by the
visitor - this will include all the SQL statements.

When I use the following code "<!--#include file="backend.asp"-->" in the
"index.asp" It removes all the formatting in the document (i.e tables &
cells) in the Dreamweaver 'design view'.

If I attempt to do anything in the 'design view' Dreamweaver returns the
following error:
"Making this change would require changing code that is locked by a template or a translator. The change will be discarded.

Can anyone explain why I am getting this error???
Thanks

P.S I am not using any templates so cannot understand this error.

Jul 19 '05 #4
Cheers guys. fixed the problem - had to remove the head, body and html tags
in the 'backend.asp' file.
Cheers Bob -did wat u said. some guy in the macromedia forum figured it out
:-)
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Maybe a DreamWeaver group would be more helpful.

Bob Lehmann

"*** HAWK" <no*********@INVALID.mail.com.Invalid> wrote in message
news:3f***********************@news.dial.pipex.com ...
I have been creating an ASP site using Dreamweaver MX.
I have 2 ASP files, these are "index.asp" and "backend.asp"
The "backend.asp" contains all of the relevant code needed to connect to

the
database ("cdshop.mdb").
While I intend the "index.asp" to be the main page that is viewed by the
visitor - this will include all the SQL statements.

When I use the following code "<!--#include file="backend.asp"-->" in the "index.asp" It removes all the formatting in the document (i.e tables &
cells) in the Dreamweaver 'design view'.

If I attempt to do anything in the 'design view' Dreamweaver returns the
following error:
"Making this change would require changing code that is locked by a

template
or a translator. The change will be discarded.

Can anyone explain why I am getting this error???
Thanks

P.S I am not using any templates so cannot understand this error.


Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Francois Grieu | last post by:
Can #include safely use a preprocessing token, as in #define HEADERFILE "stdio.h" #include HEADERFILE int main(void) {return printf("Hello, world\n")*0;} TIA, François Grieu
7
by: Kay | last post by:
1) If i want to read data from a txt file, eg John; 23; a Mary; 16; i How can I read the above data stopping reading b4 each semi-colon and save it in three different variables ? 2) If I...
2
by: Martin Hvidberg | last post by:
Dear list I have found a declaration like this: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #include "ectemp.h"
102
by: hug | last post by:
www.webmaster, was suggested that this ng could be a better place.] I've updated my test server to handle if-modified-since. I've noticed that the (old copies I run of) IE and Netscape seem...
13
by: Rick Anderson | last post by:
Group, I want to define a #include directive from another macro, if possible... For example, the following doesn't work but is basically what I need to do: #define...
9
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include...
3
by: Wayne Shu | last post by:
When I read the chapter of the namespace of the book C++ Primer(3e). It explain the using directive as follow: "A using directive makes the namespace member names visible as if they were declared...
7
by: The Cool Giraffe | last post by:
I have the following: //A.h class A {}; //B.h #include "A.h" class B : A {};
19
by: foolsmart2005 | last post by:
I have written a snake game. There are 2 levels in the game(I finished 1st level). It can run in VC++ without problem but, when I run it on the dev C++ 4.9.9.2, it cannot run. I want to...
7
by: bcpkh | last post by:
Hello All Received a header file from a supplier that defines an interface to implement but it's giving me a problem, I reproduce the general structure of the header file below; #ifndef XYZ_H...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.