Solved

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

Posted on 2012-04-09
2
452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
alert(innerHTML); 8 38
MS SQL and inserting dates into tables using stored procedures 6 38
MS SQL + date 6 41
MS SQL and column defined as time 7 25
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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
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…

763 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