Solved

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

Posted on 2012-04-09
2
423 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

914 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

18 Experts available now in Live!

Get 1:1 Help Now