Solved

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

Posted on 2012-04-09
2
404 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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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