Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DW Changes my asp code

Status
Not open for further replies.

BeckD

Programmer
Apr 16, 2002
53
0
0
GB
Hi,

I'm new to Dreamweaver, but not new to ASP/web sites. I think I have a configuration problem with DW. When I save an page it messes with my code and turns the following:

Code:
<!--METADATA TYPE="typelib" FILE = "C:\Program Files\Common Files\System\ADO\msado15.dll" -->
<%
Option Explicit

Response.Expires = 0
Response.Buffer = True

'-------------------------------------------- Includes
%>
<!--#INCLUDE FILE="includes/globalvariables.asp"-->
<!--#INCLUDE FILE="includes/db.asp"-->
<!--#INCLUDE FILE="includes/generic.asp"-->
<!--#INCLUDE FILE="includes/shortcuts.asp"-->
<%
'-------------------------------------------- Global Variables
Main
'-------------------------------------------- Main
Sub Main()
	
	OpenDb
	
	Header
	
	
	Footer
	
	CloseDb
	
End Sub

%>

into this:

Code:
<!--METADATA TYPE="typelib" FILE = "C:\Program Files\Common Files\System\ADO\msado15.dll" -->
<MM:BeginLock translatorClass="MM_ASPSCRIPT" type="script" depFiles="" orig="%3C%25
Option Explicit

Response.Expires = 0
Response.Buffer = True

'-------------------------------------------- Includes
%25%3E" ><MM_ASPSCRIPT><MM:EndLock>
<MM:BeginLock translatorClass="MM_SSI" type="ssi_comment" orig="%3C!--#INCLUDE FILE=%22includes/globalvariables.asp%22--%3E" fileRef="includes/globalvariables.asp"><img src="file:///C|/Program Files/Macromedia/Dreamweaver MX/Configuration/ThirdPartyTags/ASP.gif"><MM:EndLock>
<MM:BeginLock translatorClass="MM_SSI" type="ssi_comment" orig="%3C!--#INCLUDE FILE=%22includes/db.asp%22--%3E" fileRef="includes/db.asp"><img src="file:///C|/Program Files/Macromedia/Dreamweaver MX/Configuration/ThirdPartyTags/ASP.gif"><MM:EndLock>
<MM:BeginLock translatorClass="MM_SSI" type="ssi_comment" orig="%3C!--#INCLUDE FILE=%22includes/generic.asp%22--%3E" fileRef="includes/generic.asp"><img src="file:///C|/Program Files/Macromedia/Dreamweaver MX/Configuration/ThirdPartyTags/ASP.gif"><MM:EndLock>
<MM:BeginLock translatorClass="MM_SSI" type="ssi_comment" orig="%3C!--#INCLUDE FILE=%22includes/shortcuts.asp%22--%3E" fileRef="includes/shortcuts.asp"><img src="file:///C|/Program Files/Macromedia/Dreamweaver MX/Configuration/ThirdPartyTags/ASP.gif"><MM:EndLock>
<MM:BeginLock translatorClass="MM_ASPSCRIPT" type="script" depFiles="" orig="%3C%25
'-------------------------------------------- Global Variables
Main
'-------------------------------------------- Main
Sub Main()
	
	OpenDb
	
	Header
		
	Footer
	
	CloseDb
	
End Sub


%25%3E" ><MM_ASPSCRIPT><MM:EndLock>

Why is it doing this and how can I make it stop?

Cheers,
Beck
 
Thanks Dodge,

So does that mean that Dreamweaver won't let me use "include file" and insists that I use "include virtual"??! er... think I'll go back to homesite...
 
Not in the slightest.

I've only had this happen to me once in 4 years.
Absolutely no idea what caused it or what fixed it.

But I use virtual by default anyway.

Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top