Solved

Is there a way to not have ASP Includes mess up the 'Design" view using Dreamweaver?

Posted on 2012-04-09
2
431 Views
Last Modified: 2012-04-09
When I look at an ASP page in Dreamweaver in Design View that includes and "include page", the view is all messed up and I have to literally remove part of each include code just to see the page in a normal design view where I can make edits.

Is there a way around this>

Thanks in advance.
0
Comment
Question by:colonelblue
2 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 37823907
What is being messed up?  If the include file is messing up your design view, either there is a preference that needs to be changed or your code in the include file is the problem.  

First, look at the dreamweaver preferences and take a look at the Invisible Elements area.  Make sure you have the "Show Contents of include file" checked. There may be some other items you will want to uncheck there as well.

Otherwise, if you have a simple page like

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
'Some special functions you might have here
%>
<%
'Dreamweaver generated recordsets here
%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>MyDocument</title>
</head>

<body>
<div id="container">
  <div id="header"> header goes here </div>
  <div id="main">
    <h1>Some Title</h1>
    <div id="content_1"> <p>content 1 goes here</p> </div>
    <div id="content_2"> <p>content 2 goes here.  The date is <%=now()%></p> </div>
  </div>
</div>
</body>
</html>

Open in new window


then use SSI for the content and functions would look like below and should look exactly the same in the design view


<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="incFunctions.asp"-->
<%
'Dreamweaver generated recordsets here
%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>MyDocument</title>
</head>

<body>
<div id="container">
  <div id="header"> <!--#include file="incHeader.asp"--></div>
  <div id="main">
    <h1>Some Title</h1>
    <div id="content_1"> <!--#include file="incContent1.asp"--> </div>
    <div id="content_2"> <!--#include file="incContent2.asp"-->  </div>
  </div>
</div>
</body>
</html>

Open in new window


incFunctions.asp
<%
'Some special functions you might have here
%>

Open in new window


incHeader.asp
header goes here

Open in new window


incContent1.asp
<p>content 1 goes here</p>

Open in new window


incContent2.asp
<p>content 2 goes here.  The date is <%=now()%></p> 

Open in new window

0
 

Author Closing Comment

by:colonelblue
ID: 37824056
Thank you so much.
I greatly appreciate how awesomely concise you are.
For immediate help, unchecking Show contents of SSI was just what I needed.
I needed to see the layout and not all the div layers with asp includes covering it up.

Thank you again!!  :)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now