Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2012-04-09
2
Medium Priority
?
484 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 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

610 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