Applying Template change wipe out ASP codes
Using WINXP Pro / IIS5.1 / DW8.01
This is a new problem for me since upgrading to DW8.01.
Starting with an HTML templated webpage, I can successfully create
an ASP logon webpage. However, whenever I update the site with a
change made to the template, the ASP code gets wiped from the ASP
logon page - everything else successfullly is updated - but I lose
the ASP code above the Header tag. Here is a before and after
template-update code sample:
BEFORE - ASP code is successfully added to my
template-created page:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/eocdb.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction =
MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername=CStr(Request.Form("Username"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization=""
MM_redirectLoginSuccess="eoa_limited.asp"
MM_redirectLoginFailed="access_error.html"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_eocdb_STRING
MM_rsUser.Source = "SELECT Username, Password"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source
= MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM tblAccess
WHERE Username='" & Replace(MM_valUsername,"'","''") &"'
AND Password='" & Replace(Request.Form("Password"),"'","''")
MM_rsUser.CursorType = 0
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") =
CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And
false Then
MM_redirectLoginSuccess =
Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>
<!-- InstanceBegin template="Templates/site_template.dwt"
codeOutsideHTMLIsLocked="false" --><!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
<head>
AFTER I update via the template:
<!-- InstanceBegin template="Templates/site_template.dwt"
codeOutsideHTMLIsLocked="false" --><!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
<head>
The ASP code is stripped away. Do I need to change one of my
preferences since the 8.01 update? I do not have this problem using
PHP or JSP - only ASP. Any ideas? Resources I should review?
Show me the first 10 lines of the template file, please.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"holymackeral" <[email protected]> wrote in
message
news:[email protected]...
> Using WINXP Pro / IIS5.1 / DW8.01
> This is a new problem for me since upgrading to DW8.01.
Starting with an
> HTML
> templated webpage, I can successfully create an ASP
logon webpage.
> However,
> whenever I update the site with a change made to the
template, the ASP
> code
> gets wiped from the ASP logon page - everything else
successfullly is
> updated -
> but I lose the ASP code above the Header tag. Here is a
before and after
> template-update code sample:
>
> BEFORE - ASP code is successfully added to my
template-created page:
> <%@LANGUAGE="VBSCRIPT"%>
> <!--#include file="Connections/eocdb.asp" -->
> <%
> ' *** Validate request to log in to this site.
> MM_LoginAction = Request.ServerVariables("URL")
> If Request.QueryString<>"" Then MM_LoginAction =
MM_LoginAction + "?" +
> Server.HTMLEncode(Request.QueryString)
> MM_valUsername=CStr(Request.Form("Username"))
> If MM_valUsername <> "" Then
> MM_fldUserAuthorization=""
> MM_redirectLoginSuccess="eoa_limited.asp"
> MM_redirectLoginFailed="access_error.html"
> MM_flag="ADODB.Recordset"
> set MM_rsUser = Server.CreateObject(MM_flag)
> MM_rsUser.ActiveConnection = MM_eocdb_STRING
> MM_rsUser.Source = "SELECT Username, Password"
> If MM_fldUserAuthorization <> "" Then
MM_rsUser.Source =
> MM_rsUser.Source &
> "," & MM_fldUserAuthorization
> MM_rsUser.Source = MM_rsUser.Source & " FROM
tblAccess WHERE Username='"
> &
> Replace(MM_valUsername,"'","''") &"' AND Password='"
> Replace(Request.Form("Password"),"'","''") & "'"
> MM_rsUser.CursorType = 0
> MM_rsUser.CursorLocation = 2
> MM_rsUser.LockType = 3
> MM_rsUser.Open
> If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
> ' username and password match - this is a valid user
> Session("MM_Username") = MM_valUsername
> If (MM_fldUserAuthorization <> "") Then
> Session("MM_UserAuthorization") =
>
CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
> Else
> Session("MM_UserAuthorization") = ""
> End If
> if CStr(Request.QueryString("accessdenied")) <> ""
And false Then
> MM_redirectLoginSuccess =
Request.QueryString("accessdenied")
> End If
> MM_rsUser.Close
> Response.Redirect(MM_redirectLoginSuccess)
> End If
> MM_rsUser.Close
> Response.Redirect(MM_redirectLoginFailed)
> End If
> %>
> <!-- InstanceBegin
template="Templates/site_template.dwt"
> codeOutsideHTMLIsLocked="false" --><!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML
> 4.01
> Transitional//EN"
> "
http://www.w3.org/TR/html4/loose.dtd">
> <head>
> ...
>
> AFTER I update via the template:
> <!-- InstanceBegin
template="Templates/site_template.dwt"
> codeOutsideHTMLIsLocked="false" --><!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML
> 4.01
> Transitional//EN"
> "
http://www.w3.org/TR/html4/loose.dtd">
> <head>
> ...
>
> The ASP code is stripped away. Do I need to change one
of my preferences
> since
> the 8.01 update? I do not have this problem using PHP or
JSP - only ASP.
> Any
> ideas? Resources I should review?
>
Similar Messages
-
Template Updates wipe out PHP code at top of file
Hey everybody,
I'm helping my wife with a web site that needed PHP, and
since I know Dreamweaver I figured it couldn't be that hard to do.
And it's not - between the DW application development features and
a little hacking, it's been going fgreat.
But the site is based off of a .dwt template, and every time
she makes a change to the design it wipes out all the connection
code that dreamweaver writes at the top of the page... arrrgh! I
tried looking it up on the site, and tried adding a
codeOutsideHTMLIsLocked="false" tag (I also tried "true") and that
did not help.
I never had this problem with Cold Fusion before. There's
something in the livedocs about "dynamic templates" but that seems
to imply I'd have to make my own XML definition file for php
documents, which is pretty stupid, and makes me think it's not
necessary.
Anyone ever come up against this before?There's more to it than that, right? Let's see it all,
please. The best
way would be to upload it and post a link....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"illovich" <[email protected]> wrote in
message
news:g1frjf$mi6$[email protected]..
> Here is is, thanks for taking a look!
>
>
>
> <?php require_once('Connections/serv.php'); ?>
> <?php
> if (!function_exists("GetSQLValueString")) {
> function GetSQLValueString($theValue, $theType,
$theDefinedValue = "",
> $theNotDefinedValue = "")
> {
> $theValue = get_magic_quotes_gpc() ?
stripslashes($theValue) :
> $theValue;
>
> $theValue = function_exists("mysql_real_escape_string")
> mysql_real_escape_string($theValue) :
mysql_escape_string($theValue);
>
> switch ($theType) {
> case "text":
> $theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
> break;
> case "long":
> case "int":
> $theValue = ($theValue != "") ? intval($theValue) :
"NULL";
> break;
> case "double":
> $theValue = ($theValue != "") ? "'" .
doubleval($theValue) . "'" :
> "NULL";
> break;
> case "date":
> $theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
> break;
> case "defined":
> $theValue = ($theValue != "") ? $theDefinedValue :
> $theNotDefinedValue;
> break;
> }
> return $theValue;
> }
> }
>
> mysql_select_db($database_serv, $serv);
> $query_posters = "SELECT * FROM isazPosters ORDER BY
posterID ASC";
> $posters = mysql_query($query_posters, $serv) or
die(mysql_error());
> $row_posters = mysql_fetch_assoc($posters);
> $totalRows_posters = mysql_num_rows($posters);
> ?>
> -
Do not apply Templates for dynamic page
Hi,
When i add a tag <ORACLE> ...</ORACLE> then all code before this tag don't displate.(I have viewed source after apply template but did't see code before Oracle tag).
Could you tell me the way to sovle the problem.
thanks !
thangtkDear Candace ,
- I have a dynamic page that includes oracle tag (<oracle> </oracle>).Run it ok .
-When i apply my template(user template) then dynnamic don't display all component of Template.
-I had viwed source code (dynamic+template) .I only see componet code begin <oracle> to end. (contains HTML outside <oracle>..</oracle>) and all code before <oracle>..</oracle> to lose .
Ex:I have a code
<html>
<head>
<title>
</title>
</head>
<body>
<table>
</table>
<oracle>
begin
htp.init();
htp.p('..');
end;
</oracle>
</body>
</html>
run it anh view source then i only see:
<oracle>
begin
htp.init();
htp.p('..');
end;
</oracle>
</body>
</html>
I lose code.
<html>
<head>
<title>
</title>
</head>
<body>
<table>
</table>
I think that Templates don't display ,the same cause.
I hope you will reply quickly for you.
thanks very much !
(sorry ,I write very bad) -
Template changes will not propogate out to the child web pages in the defined site.
I have a user in my organization who regularly makes changes to a dreamweawer template in order to universally change content on pages that are internal to her office. The site that serves her office has been defined in dreamweaver (we're running dreamweaver CS4). Normally, after saving the template changes on her way out of the dw session, she would be asked whether or not she wanted to propagate her template changes out to all of the child web pages (.htmls) in her site. This has stopped happening and sure enough she can see that the change doesn't exist on the child pages. Does anyone know why this might have happened, how to restore that prompt for propagation or, most importantly, how she can get those changes propagated to the child pages?
That may be an eventuality, particularly assuming I'm never able to work on this fulltime...which is likely. =) Anyway, thanks so much for the link. We'll try this again. Hopefully, you'll be able to read it. Even if it's clear, it may still just be clearly ugly, but please let me know what you think. Thanks!:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- begin page information comments section.
Replace the entries below to match your pages
File: /templates/intranet_full.dwt
Date: 06/30/2005
Author: Page author / developer name
Description:
template for the census intranet
Sponsor / Contact:
Modification History: (initials, modification, date changed)
JRJ, Template created, 06/30/2005
end of page information comments section.-->
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/geo_template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title></title>
<meta name="author" content="" />
<meta content="Geography Division, main page" name="Keywords" />
<meta content="Main Geography Division Home Page" name="Description" />
<link rel="Main Geography Division Home page" href="http://www.geo.census.gov/" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../asset/css/cwwintranet.css" rel="stylesheet" type="text/css" />
<link href="../asset/css/cwwintranet_print.css" rel="stylesheet" type="text/css" media="print" />
<link href="../asset/css/cww-geo.css" rel="stylesheet" type="text/css" />
<!-- InstanceEndEditable -->
<!-- InstanceParam name="contact" type="text" value="" -->
</head>
<body>
<!-- Start - This will allow 508 Compliance for header skipping -->
<!-- ************************** begin censusintranet_header ************************** -->
<div id="zcwwImageHeader">
<a href="#main" tabindex="0"><img id="SpacerImage" border="0" src="../asset/img/spacer.png" width="1" height="1" alt="Press enter to skip horizontal navigation bar." /></a>
<img src="../asset/img/banner_img.png" width="390" height="50" alt="" id="zcwwImageRight" />
<a href="http://cww.census.gov/" tabindex="1"><img src="../asset/img/inside_census.png" alt="Image with the text: inside census" width="360" height="39" border="0" id="zcwwImageLeft" /></a>
</div>
<div id="zcwwBlueNavHeader">
<ul>
<li><a tabindex="2" href="http://cww.census.gov/menu.asp?catcode=2">About Census</a></li>
<li><a tabindex="3" href="http://cww.census.gov/menu.asp?catcode=3">Forms & Publications</a></li>
<li><a tabindex="4" href="http://cww.census.gov/menu.asp?catcode=4">IT & System Support</a></li>
<li><a tabindex="5" href="http://cww.census.gov/menu.asp?catcode=5">Management Resources</a></li>
<li><a tabindex="6" href="http://cww.census.gov/menu.asp?catcode=6">Safety & Security</a></li>
<li class="znoBorder"><a tabindex="7" href="http://cww.census.gov/menu.asp?catcode=7">Work Life & Career</a></li>
</ul>
</div>
<div id="zcwwSearchHeader">
<ul>
<li><a tabindex="14" title="A to Z Index" href="http://cww.census.gov/AtoZIndex.asp">A to Z</a></li>
<li><a href="http://cww.census.gov/faq/">FAQ</a> </li>
<li class="znoBorder"><a tabindex="15" href="http://cww.census.gov/sitemap.asp">Site Map</a></li>
</ul>
<form class="zcwwSearchForm" action="http://cww.census.gov/search.asp">
<input name="radiobutton" type="radio" class="zcwwSearchText" id="employeeRadio" tabindex="8" value="employee" />
<label for="employeeRadio">Employee</label>
<input name="radiobutton" id="searchRadio" type="radio" value="Intranet" class="zcwwSearchText" tabindex="9" checked="checked" />
<label for="searchRadio">Intranet</label>
<label for="searchText"><input tabindex="10" id="searchText" name="textfield" type="text" value="" size="15" class="zcwwSearchText" /></label>
<input tabindex="11" name="Search" type="submit" id="Search" value="Search" class="zcwwGoButton" />
</form>
<form name="DivisionForm" action="http://cww.census.gov/cwwDivisionNav.asp" method="post" class="zcwwSearchForm">
<span style="position:absolute;left:0px;top:-500px;width:1px;height:1px;overflow:hidden;" class="reader">For the following combo box, to make a selection, press enter then alt plus
down arrow and use the up and down arrows.</span>
<label for="zDivisionList"><select class="zcwwSearchText" tabindex="12" id="zDivisionList" name="zDivisionList" onchange="window.location='http://cww.census.gov/cwwDivisionNav.asp?zDivisionList=' + form.zDivisionList.options[form.zDivisionList.selectedIndex].value;">
<option value="http://cww.census.gov/Directorate_Division.asp">Go to Directorate or Division</option>
<option class="zcwwSelectA" value="http://cww.census.gov/Directorate_Division.asp">Directorates</option>
<option class="zcwwSelectB" value="11">Assoc Dir for Administration & CFO (ADACFO)</option>
<option class="zcwwSelectB" value="4">Assoc Dir for Communications (ADCOM)</option>
<option class="zcwwSelectB" value="46">Assoc Dir for Decennial Census (ADDC)</option>
<option class="zcwwSelectB" value="52">Assoc Dir for Demographic Programs (ADDP)</option>
<option class="zcwwSelectB" value="36">Assoc Dir for Economic Program (ADEP)</option>
<option class="zcwwSelectB" value="28">Assoc Dir for Field Operations (ADFO)</option>
<option class="zcwwSelectB" value="21">Assoc Dir for Information Technology & CIO (ADIT)</option>
<option class="zcwwSelectB" value="64">Assoc Dir for Strategic Planning & Innovation (ADSPI)</option>
<option class="zcwwSelectB" value="1">Office Of The Director (DIR)</option>
<option class="zcwwSelectA" value="http://cww.census.gov/Directorate_Division.asp">Divisions</option> <option class="zcwwSelectB" value="15">Acquisition (ACQ)</option>
<option class="zcwwSelectB" value="16">Administrative & Customer Services (ACSD)</option>
<option class="zcwwSelectB" value="14">Administrative & Management Systems (AMSD)</option>
<option class="zcwwSelectB" value="50">American Community Survey Office (ACSO)</option>
<option class="zcwwSelectB" value="17">Budget Division (BUD)</option>
<option class="zcwwSelectB" value="40">Chief Economist (CES)</option>
<option class="zcwwSelectB" value="41">Company Statistics (CSD)</option>
<option class="zcwwSelectB" value="22">Computer Services (CSVD)</option>
<option class="zcwwSelectB" value="6">Congressional Affairs Office (CAO)</option>
<option class="zcwwSelectB" value="33">Customer Liaison Office (CLO)</option>
<option class="zcwwSelectB" value="65">Data Integration Div (DID)</option>
<option class="zcwwSelectB" value="47">Decennial Management (DMD)</option>
<option class="zcwwSelectB" value="51">Decennial Statistical Studies (DSSD)</option>
<option class="zcwwSelectB" value="48">Decennial System & Contracts Management Office (DSCMO)</option>
<option class="zcwwSelectB" value="55">Demographic Statistical Methods (DSMD)</option>
<option class="zcwwSelectB" value="53">Demographic Surveys (DSD)</option>
<option class="zcwwSelectB" value="38">Economic Planning & Coordination (EPCD)</option>
<option class="zcwwSelectB" value="39">Economic Statistical Methods & Programming (ESMPD)</option>
<option class="zcwwSelectB" value="10">Equal Employment Opportunity Office (EEO)</option>
<option class="zcwwSelectB" value="31">Field (FLD)</option>
<option class="zcwwSelectB" value="18">Finance Division (FIN)</option>
<option class="zcwwSelectB" value="43">Foreign Trade (FTD)</option>
<option class="zcwwSelectB" value="49">Geography (GEO)</option>
<option class="zcwwSelectB" value="44">Governments (GOVS)</option>
<option class="zcwwSelectB" value="54">Housing & Household Economic Statistics (HHES)</option>
<option class="zcwwSelectB" value="13">Human Resources (HRD)</option>
<option class="zcwwSelectB" value="24">Information System Support & Review Office (ISSRO)</option>
<option class="zcwwSelectB" value="27">Information Technology Security Office (ITSO)</option>
<option class="zcwwSelectB" value="25">Lan Technology Support Office (LTSO)</option>
<option class="zcwwSelectB" value="45">Manufacturing & Construction (MCD)</option>
<option class="zcwwSelectB" value="34">Marketing Services Office (MSO)</option>
<option class="zcwwSelectB" value="30">National Processing Center (NPC)</option>
<option class="zcwwSelectB" value="9">Office of Analysis and Executive Support (OAES)</option>
<option class="zcwwSelectB" value="56">Population (POP)</option>
<option class="zcwwSelectB" value="7">Public Information Office (PIO)</option>
<option class="zcwwSelectB" value="42">Service Sector Statistics (SSSD)</option>
<option class="zcwwSelectB" value="59">Statistical Research (SRD)</option>
<option class="zcwwSelectB" value="26">Systems Support (SSD)</option>
<option class="zcwwSelectB" value="29">Technologies Management Office (TMO)</option>
<option class="zcwwSelectB" value="23">Telecommunications Office (TCO)</option>
</select>
</label>
<noscript>
<input type="submit" tabindex="13" title="Go to Selected Directorate/Division/Office" class="zcwwGoButton" value="Go" />
</noscript>
</form>
<a name="main" id="main"></a>
</div>
<!-- ************************** end censusintranet_header ************************** -->
<table cellpadding="0" cellspacing="0" id="zcwwLayoutTable">
<tr valign="top">
<td id="zcwwLeftMenu">
<!-- Start - This will allow 508 Compliance for header skipping --><!-- End - This will allow 508 Compliance for header skipping -->
<h5><a href="http://www.geo.census.gov/">Geography Division</a></h5>
<ul>
<li><a
href="http://www.geo.census.gov/branches.html">Branches</a> </li>
<li><a
href="http://cww.census.gov/roster/default.aspx?OrgCode=GEO&option=div">Roster</a> </li>
<li><a
href="http://portal.geo.census.gov:7778/portal/page?_pageid=0,1416&_dad=portal30_db&_schema=PORTAL30">Portal</a> </li>
<li><a
href="http://www.geo.census.gov/mis/">MIS</a> </li>
<li><a href="../asset/documents/geo_4th_floorplan.pdf">Division Floor Plan</a></li>
<li><a href="http://cww.acsd.census.gov/building/floorLayout.asp">Census Building Floor Plan</a></li>
<li><a href="../asset/mailingaddress.html">Mailing Address</a></li>
</ul>
<!-- InstanceBeginEditable name="navBar" -->@@("")@@
<h5><a href="../UOB/index.html">UOB</a></h5>
<ul>
<li><a href="../UOB/roster.html">Roster</a> </li>
<li>Organization</li>
<li class="leftmenu_ind"><a href="../UOB/batch.html">Batch and Interactive Update Section</a></li>
<li class="leftmenu_ind"><a href="../UOB/coordination.html">Coordination Section</a></li>
<li class="leftmenu_ind"><a href="../UOB/production.html">Production Section</a></li>
<li><a href="../asset/img/uob_floorplan.pdf">Branch Floor Plan</a></li>
<li><a href="../UOB/org_chart.html">Organizatonal Chart</a></li>
</ul>
<h5>Operations, Procedures, and Controls</h5>
<ul>
<li><a href="../UOB/branch_web/bas.html">BAS</a></li>
<li><a href="../uob/GATRES/userguide/index.htm">GATRES Documentation</a></li>
<li><a href="../UOB/branch_web/Hwy_Rev.html">Highway Review</a></li>
<li><a href="../UOB/luca.html">LUCA</a></li>
<li><a href="../UOB/mafgor.html">MAFGOR</a></li>
<li><a href="../UOB/msnerp.html">MSNERP</a></li>
<li><a href="../UOB/pbo_msp_reconciliation.html">PBO MSP Reconciliation</a></li>
<li><a href="../UOB/monthly.html">UOB Monthly Production Reports</a></li>
<li><a href="http://www.geo.census.gov/wcb/production_control.html">Production Control Systems</a></li>
<li><a href="../UOB/inactive.html">Inactive Projects Documents</a></li>
<li><a href="../UOB/branch_web/FY2011_Projects.html">FY 2011 Projects</a></li>
</ul>
<h5>General Reference</h5>
<ul>
<li><a href="../UOB/cfcc.html">CFCC-MTFCC Crosswal</a>k</li>
<li><a href="../UOB/GATRES_Ready_Report.html">GATRES Ready Reports</a></li>
<li><a href="../UOB/feature.html">Feature Update Rules</a></li>
<li><a href="../UOB/MSP_Reshape.html">MSP and Reshape Consistency</a></li>
<li><a href="../UOB/GATRES/userguide/Primary_Alternate Name Designation.htm">Primary/Alternate Name</a></li>
<li><a href="http://prodas2.geo.census.gov:7778/prs_prodtran/eprs_welcome.welcome">Problem Referral System</a></li>
<li><a href="../UOB/release.html">Release Notes</a></li>
<li><a href="../UOB/branch_web/statecountyprefixchart.html">State/County Prefix Standards</a></li>
<li><a href="../UOB/Training.html">Training</a></li>
</ul>
<!-- InstanceEndEditable -->
<p> </p> </td>
<td id="zcwwContentArea"><!-- InstanceBeginEditable name="image" --><!-- InstanceEndEditable --> <br />
<!-- InstanceBeginEditable name="body_2" --><!-- InstanceEndEditable -->
<div class="clear"><hr />
<p>Contact: <!-- InstanceBeginEditable name="contact" -->@@("")@@ <!-- InstanceEndEditable --><br />
Last Revised: <!-- InstanceBeginEditable name="revise" --><!-- InstanceEndEditable --></p></div>
<!-- end content here --> </td></tr>
</table>
<!-- end content here -->
<!-- ************************** begin censusintranet_footer ************************** -->
<div id="zcwwPageFooter">
<img src="../asset/img/wordmark_cwwblue.png" alt="U.S. Census Bureau - Helping You Make Informed Decisions" width="210" height="32" id="zcwwImageFooter" />
<ul>
<li><a href="http://cww.census.gov/">CWW</a></li>
<li><a href="http://cww.census.gov/AccessiblilityStatement.asp">Accessibility</a></li>
<li><a href="http://cww.census.gov/Contact.asp">Contact</a></li>
<li><a href="http://cww.census.gov/roster/">Employee Lookup</a></li>
<li><a href="http://cww.census.gov/Feedback.asp">Feedback</a></li>
<li><a href="http://cww.census.gov/firewall.asp">Firewall</a></li>
<li><a href="http://cww.census.gov/cwwpolicy.asp">Privacy Policy</a></li>
<li class="noBorder"><a href="http://www.census.gov/">WWW</a></li>
</ul>
</div>
<!-- ************************** end censusintranet_footer ************************** -->
</body>
<!-- InstanceEnd --></html> -
How to change Crystal Reports XI database name at run time from ASP code using ADO
Dear All,
I need advises regarding to my problem below
I have two database in same SQL 2005 SERVER for TEST01 and LIVE01 Environtment, and I've created more than 100 reports with Crystal Reports 11 and call it from ASP classic page.
The problem is how can I change a database from TEST01 to LIVE01 at the run time from ASP code as I already using TEST01 database on Crystal Reports and I do not want to set a new database location inside crystal for each reports
Thanks and wait for your reply soon.
Below is my code, which has no effect to crystal reports although I've change the database from TEST01 to LIVE01:
<%
Dim oADOConnection, oRptTable, oADORecordset, sql
Dim struser, strpwd, strdriver, dblocation, dbname, strConnect
struser = "sa"
strpwd = ""
strdriver = "{SQL SERVER}"
dblocation = "SQL200501"
dbname = "LIVE01" ' Changed from TEST01 to LIVE01
strConnect = "User Id=" & strUser & ";"
strConnect = strConnect & "PWD=" & strPwd & ";"
strConnect = strConnect & "DRIVER=" & StrDriver & ";"
strConnect = strConnect & "SERVER=" & DBLocation & ";"
strConnect = strConnect & "DATABASE=" & dbName
sql="Select * from Employee"
Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
Set session("oRpt") = session("oApp").OpenReport("C:\REPORTS\RPT01.RPT", 1) 'USING TEST01 DATABASE
session("oRpt").MorePrintEngineErrorMessages = False
session("oRpt").EnableParameterPrompting = False
session("oRpt").DiscardSavedData
Set oADOConnection = Server.CreateObject("ADODB.Connection")
oADOConnection.Open (strConnect)
Set oADORecordset = Server.CreateObject("ADODB.Recordset")
Set oRptTable = session("oRpt").Database.Tables.Item(1)
oRptTable.SetDataSource oADORecordset, 3
session("oRpt").SQLQueryString = CStr(sql)
session("oRpt").ReadRecords
%>Did you ever find a solution to this problem? I have the same problem when moving reports from development to Test to Production environments. If the DBName is not the same the report ignores the name provided at runtime.
-
Sql injection attack - need help changing ASP code
Our web server was attacked yesterday by SQL injection. So I
quickly learned about the holes in the code that was generated by
Dreamweaver MX 2004.
I found the help article on the Adobe website to fix the ASP
code; however I need more information for my particular case. I
don't know how to get my cursor type and location settings into the
new code.
MY ORIGINAL CODE
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_Oncology_STRING
Recordset1.Source = "SELECT * FROM dbo.Oncology_Dir WHERE
Oncology_ID = " + Replace(Recordset1__MMColParam, "'", "''") + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 3
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
THE NEW CODE, WHICH NEEDS TO BE FIXED TO REFLECT CURSOR TYPE
AND LOCATION ABOVE.
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_Oncology_STRING
Recordset1_cmd.CommandText = "SELECT * FROM dbo.Oncology_Dir
WHERE Oncology_ID = ?"
Recordset1_cmd.Prepared = true
Recordset1_cmd.Parameters.Append
Recordset1_cmd.CreateParameter("param1", 5, 1, -1,
Recordset1__MMColParam) ' adDouble
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
What exactly is the 5,1,-1 in the code above?
Any help would be very much appreciated as my ASP page
(although secured from SQL injection) is not working properly.
Thanks,
--Jen
--JenThe new snippet is not vulnerable to SQL injection. It uses a
command
object and actual defined parameters, so you're safe. You
cannot change the
cursor type or location on that object.
"jennday" <[email protected]> wrote in
message
news:f85omh$ngg$[email protected]..
> Our web server was attacked yesterday by SQL injection.
So I quickly
> learned
> about the holes in the code that was generated by
Dreamweaver MX 2004.
> I found the help article on the Adobe website to fix the
ASP code; however
> I
> need more information for my particular case. I don't
know how to get my
> cursor type and location settings into the new code. -
I had to wipe out my laptop, I am waiting to get my serial number back. I need to know how I download Logic Pro 9 with the codes I already have.
If you bought the boxed set of Logic Studio 2.0 which includes LP9, then you cannot download it. You must use the disks that came as part of the boxed set... to install from.
If you bought the App Store version of Logic Pro 9 then go to the Mac App Store App, Sign into the Store using the same Apple ID you used to purchase LP originally, look under the Purchase Tab and you shouldl find LP9 ready and waiting for you to download and install. -
DW CC Not applying template updates to ASP pages
HI,
Im having a problem with DW CC
I have added the server behavours back in so I can work with my asp pages and it seems to be ok.
BUT if i use Templates to make the pages when I update the template if the pages that were created have .asp extensions the template doesnt update it only updates the .htm or .html files.
Can someone suggest what I can do?
I have no other issues with my .asp pages, but I have to manually update by foing to the menu and " Modify> Apply Template To Page " and its fine but this is tiresome if there are a few pages..
Thanks in advance for any thoughts or adviice as to where im going wrong.
Regards
TagThanks Ben..
Its a thought for sure , I just hoped that I could get it to work the way It did for me in CS6.
Thanks again :-) -
Apply Template Body unresolved
I have a page that I would like to apply a template to. I sue
the following
steps:
1- open the page
2- modify> templates>apply template to page
3- choose the correct template within the corresponding site
template folder
4- I then get the message of areas being unresolved.
One on the areas is the head content which I set to head the
other is the
problem. It tells me the "body" is unresolved. I can't place
the entire body
of the doc in the one and only editable region, so what is
the problem. Why
is the body coming up as unresolved?
KimYes, I guess your right. I will approach him with this and
see what type of
reaction I get.
Thanks,
Kim
"Murray *ACE*" <[email protected]> wrote
in message
news:[email protected]...
> Why would he not be able to see them? SSI shows up fine
in DW's design
> view and previews (if you are using temp files).
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "KimMazz" <[email protected]> wrote in
message
> news:[email protected]...
>>> Doesn't have SSI? How come?
>>
>> I mean the ability to view locally on his PC.
>>
>> He's more of a graphic artist and if I make it an
include and he doesn't
>> have the capability of actually "seeing" it on the
page it will give him
>> some trouble. He doesn't have the latest software
and doesn't want to
>> install a testing server to preview the pages. The
dynamic part of the
>> site is being built using CF so, it presents a
problem.
>>
>> Originally he was exporting the code from fireworks
to build the pages.
>> So, it's just a tough situation.
>>
>> Kim
>>
>> "Murray *ACE*"
<[email protected]> wrote in message
>> news:[email protected]...
>>>> There is a rather lengthy menu that may
change.
>>>
>>> Make it an include.
>>>
>>>> but the other used doesn't have that open to
him and it is way to hard
>>>> to explain what he has to install in order
to preview the pages as he
>>>> places the main content.
>>>
>>> Doesn't have SSI? How come?
>>>
>>>
>>> --
>>> Murray --- ICQ 71997575
>>> Adobe Community Expert
>>> (If you *MUST* email me, don't LAUGH when you do
so!)
>>> ==================
>>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>>> ==================
>>>
>>>
>>> "KimMazz" <[email protected]>
wrote in message
>>> news:[email protected]...
>>>> Well, the problem is the site was started by
someone else. There is a
>>>> rather lengthy menu that may change. And the
finished site will be well
>>>> over 60 pgs. So, I thought to set up the
site with a template and let
>>>> him work form there. I would have used SSI
or CF Includes, but the
>>>> other used doesn't have that open to him and
it is way to hard to
>>>> explain what he has to install in order to
preview the pages as he
>>>> places the main content.
>>>>
>>>> I guess we'll work it out.
>>>>
>>>> Kim
>>>>
>>>> "Murray *ACE*"
<[email protected]> wrote in message
>>>> news:[email protected]...
>>>>> Actually, there would be no way to do
that. How would it know what to
>>>>> place where?
>>>>>
>>>>> --
>>>>> Murray --- ICQ 71997575
>>>>> Adobe Community Expert
>>>>> (If you *MUST* email me, don't LAUGH
when you do so!)
>>>>> ==================
>>>>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>>>>> ==================
>>>>>
>>>>>
>>>>> "KimMazz"
<[email protected]> wrote in message
>>>>>
news:[email protected]...
>>>>>> Murray,
>>>>>>
>>>>>> Ok. Thanks. Although it would be
nice to be able to just apply it to
>>>>>> a current page and not have to go
through that added step.
>>>>>>
>>>>>> Kim
>>>>>>
>>>>>> "Murray *ACE*"
<[email protected]> wrote in message
>>>>>>
news:[email protected]...
>>>>>>> Because your page aleready has
contents. The only way to do this is
>>>>>>> to create a new page from the
template with FILE | New > Templates >
>>>>>>> site name
>>>>>>> > template name > Create,
and then copy and paste from the old page
>>>>>>> > to the
>>>>>>> new one, finally saving the new
over the old.
>>>>>>>
>>>>>>> --
>>>>>>> Murray --- ICQ 71997575
>>>>>>> Adobe Community Expert
>>>>>>> (If you *MUST* email me, don't
LAUGH when you do so!)
>>>>>>> ==================
>>>>>>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>>>>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>>>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>>>>>
http://www.macromedia.com/support/search/
- Macromedia (MM)
>>>>>>> Technotes
>>>>>>> ==================
>>>>>>>
>>>>>>>
>>>>>>> "KimMazz"
<[email protected]> wrote in message
>>>>>>>
news:[email protected]...
>>>>>>>>I have a page that I would
like to apply a template to. I sue the
>>>>>>>>following steps:
>>>>>>>> 1- open the page
>>>>>>>> 2- modify>
templates>apply template to page
>>>>>>>> 3- choose the correct
template within the corresponding site
>>>>>>>> template folder
>>>>>>>> 4- I then get the message of
areas being unresolved.
>>>>>>>>
>>>>>>>> One on the areas is the head
content which I set to head the other
>>>>>>>> is the problem. It tells me
the "body" is unresolved. I can't place
>>>>>>>> the entire body of the doc
in the one and only editable region, so
>>>>>>>> what is the problem. Why is
the body coming up as unresolved?
>>>>>>>>
>>>>>>>> Kim
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
> -
Error accessing file template file not found (error code 2)
We have 3 admins that work on the website so we use the Check In/ Check Out feature of DW. We all have DW CS6.
When I update the template I have no problem (I work on a mac). However, if one of the other admins (Windows) tries he gets the following message: Error accessing file template file "C:\filepath\filename.dwt": file not found (error code 2).
I looked at this thread: Re: Dreamweaver Template not updating pages error code 2? but the only solution offered there is to change the template tag from <!-- InstanceBegin... to <!-- TemplateBegin... If this is the solution, how do you do this?
When I go to the url of the template http://www.christophorushouse.com.au/Templates/chrv-main-template.dwt it says it's been (re)moved or renamed, but then I have a feeling you can't view/access a template this way. All pages of the website feed of this template.
Any help would be appreciated.
ThanksWe have 3 admins that work on the website so we use the Check In/ Check Out feature of DW. We all have DW CS6.
When I update the template I have no problem (I work on a mac). However, if one of the other admins (Windows) tries he gets the following message: Error accessing file template file "C:\filepath\filename.dwt": file not found (error code 2).
I looked at this thread: Re: Dreamweaver Template not updating pages error code 2? but the only solution offered there is to change the template tag from <!-- InstanceBegin... to <!-- TemplateBegin... If this is the solution, how do you do this?
When I go to the url of the template http://www.christophorushouse.com.au/Templates/chrv-main-template.dwt it says it's been (re)moved or renamed, but then I have a feeling you can't view/access a template this way. All pages of the website feed of this template.
Any help would be appreciated.
Thanks -
DreamWeaver Template change not updating children webpages?
Hi Group,
Sorry for my newbie question here.
I loaded an HTML webpage, and saved it out as a DreamWeaver Template file.
I then created webpages from the template file (( File - New - Page From Template - Site - Template), and made sure that the "Update Page when Template Changes" check box was selected/checked.
I then created several chldren webpages, and saved them as .html files.
I decided to change the navbar system - part of the uneditiabel region in the template - by opening the template file and edit-ing that file, and then saving it as the same DreamWeaver template file.
However, the webpages did Not Update to reflect the navbar changes in the template fle !??!???
Can someone tell me what I'm doing wrong?
I believe it is something that I'm doing incorrectly with DreamWeaver ..
Here is the HTML if anyone is interested.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateBeginEditable name="DocTitle" -->
<title>CNC Joe's WorkShop - - Home Page </title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../style.css" rel="stylesheet" type="text/css" media="screen" />
<!-- Keep the http-equiv meta tag for IE8 -->
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<!-- Link the CSS file here -->
<link rel="stylesheet" type="text/css" media="screen,projection" href="../style.css" />
</head>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<body>
<div id="wrapper">
<a name="top"></a>
<a href="index.html" target="_self" title="CNC-Joe's Home Page" >
<img src="../joesworkshoplogo.gif" width="770px" height="300px" alt="CNC Joe's WorkShop - Home Page" />
</a>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ -->
<!-- BEGIN OF PULL DOWN MENU -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ -->
<div class="mainmenu">
<ul>
<li class="li_nc"><a href="index.html" target="_self" >Home</a></li>
<li class="li_hc"><a href="cad.html" target="_self" >CAD</a><ul class="ul_ch">
<li class="li_nc"><a href="cad_intellicad.html" target="_self" >IntelliCAD</a></li>
<li class="li_nc"><a href="cad_draftsight.html" target="_self" >DraftSight</a></li>
<li class="li_nc"><a href="cad_progesoft.html" target="_self" >Progesoft</a></li>
</ul></li>
<li class="li_hc"><a href="cam_html" target="_self" >CAM</a><ul class="ul_ch">
<li class="li_nc"><a href="cam_mach3.html" target="_self" >Mach3</a></li>
<li class="li_nc"><a href="cam_vcarve.html" target="_self" >V-Carve</a></li>
<li class="li_nc"><a href="cam_cut3d.html" target="_self" >Cut 3D</a></li>
<li class="li_nc"><a href="cam_bobcadcam.html" target="_self" >Bob-CAD-CAM</a></li>
<li class="li_nc"><a href="cam_meshcam.html" target="_self" >Mesh CAM</a></li>
<li class="li_nc"><a href="cam_deskcnc.html" target="_self" >Desk CNC</a></li>
</ul></li>
<li class="li_hc"><a href="projects.html" target="_self" >Projects</a><ul class="ul_ch">
<li class="li_nc"><a href="projects_zzeroplate.html" target="_self" >Z Zero Plate</a></li>
<li class="li_nc"><a href="projects_x0y0edgefinder.html" target="_self" >X0-Y0 Edge Finder</a></li>
<li class="li_nc"><a href="projects_digitizingtouchprobe.html" target="_self" >Digitizing Touch Probe</a></li>
<li class="li_nc"><a href="projects_millwebcam.html" target="_self" >Mill Web CAM</a></li>
<li class="li_nc"><a href="projects_laseredgefinder.html" target="_self" >Laser Pointer Edge Finder</a></li>
<li class="li_nc"><a href="projects_davidlaserscanner.html" target="_self" >David Laser Scanner</a></li>
</ul></li>
<li class="li_hc"><a href="reference.html" target="_self" >Reference</a><ul class="ul_ch">
<li class="li_nc"><a href="ref_gcodes.html" target="_self" >G-codes</a></li>
<li class="li_nc"><a href="ref_nema.html" target="_self" >NEMA Motor Info</a></li>
<li class="li_nc"><a href="ref_vbearings.html" target="_self" >V-Bearings</a></li>
<li class="li_nc"><a href="ref_linearguides.html" target="_self" >Linear Guides</a></li>
</ul></li>
<li class="li_hc"><a href="offtopictopics.html" target="_self" >Off-Topic Topics</a><ul class="ul_ch">
<li class="li_nc"><a href="ott_backyardfoundry.html" target="_self" >BackYard Foundry</a></li>
<li class="li_nc"><a href="ott_blacksmithing.html" target="_self" >BlackSmithing</a></li>
</ul></li>
<li class="li_nc"><a href="links.html" target="_self" >Links</a></li>
<li class="li_nc"><a href="contact.html" target="_self" >Contact</a></li>
</ul>
</div>
<!-- END OF PULL DOWN MENU -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ -->
<!-- END OF PULL DOWN MENU -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ -->
<!-- TemplateBeginEditable name="content" -->
<h2>Projects: Digitizing Touch Probe:</h2>
<ul>
<li> </li>
<li> </li>
<li> </li>
<li> </li>
<li> </li>
<li> </li>
<li> </li>
</ul>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ -->
<!-- End of Editable Region - the rest is Boiler Plate -->
<!-- TemplateEndEditable -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ -->
<br />
<p><a href="#top" >Back To Top...</a></p>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ -->
<!-- Footer Region -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ -->
<div id="footer">
<hr />
<p>
<a href="http://validator.w3.org/check?uri=referer">
<img class="logos" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
class="logos" src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" />
</a>
</p>
<h5><strong><i>
This website is for educational purposes only. Any resemblance to any person - living or dead - is purely coincidental
</i></strong></h5>
</div>
</div><!-- end Div Wrapper -->
</body>
</html>Additional Info:
No -I haven't been able to get the DW Template feature to work on other sites - this is my first application of it to a website (actually it's the whole reason for getting DreamWeaver... I know it works, I know that I'm doing something wrong.. I just don't know what it is...)
All the .HTML files (index.html, cad.html, cam.html, etc. etc.) are in the website's root directory.
The Template file is in its own sub-directory folder named "Templates".
Right now even the .css file is in the root directory....
Thank You for trying to help me - I greatly appreciate it.
Joe -
Background does not appear after applying template
CS4
template defined and saved in template folder.
when applying template to new html page, all transfers but background image does not appear, url is in code but does not find file. any ideas???
body {
background-image: url(file:///F|/projects/BBMD Projects/bbmd site v2/images/bridgelv2.jpg);
background-repeat: no-repeat;
background-color: #D2D2D2;
background-attachment: fixed;
background-position: 75px top;
height: 400px;
width: 600px;
position: inherit;
overflow: scroll;
top: auto;
left: auto;
right: inherit;
font-family: "Lucida Console", Monaco, monospace;
font-size: small;
font-style: normal;
color: #000;
border-top-style: none;
text-align: left;
vertical-align: top;
bottom: auto;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;template defined and saved in template folder.
when applying template to new html page, all transfers but background image does not appear, url is in code but does not find file. any ideas???
If this is a new site and a newly created template, you DON'T need to 'apply' the template.
The best way to create new child pages is to :
FILE>New>Page from Template
There will be a list of any templates you've created, select the correct one and press create. Child page created :-)
Save as newpagename.html (not inside the Template folder though !)
PS; as others have pointed out, the link to the background image is incorrect it's pointing to your harddrive. Is the file within the defined site working folder?
Nadia
Adobe® Community Expert : Dreamweaver
Unique CSS Templates | Tutorials | SEO Articles
http://www.DreamweaverResources.com
Web Design & Development
http://www.perrelink.com.au
http://twitter.com/nadiap -
Newbie to JSP, Need to convert some ASP code to work for JSP
Can I get some aid in converting the following ASP code to work using JSP. I have never used JSP before but I now need to because of a recent server change.
<%
DIM URL
URL = LCase(Request.ServerVariables("URL"))
if InStr(URL, "/about/") then
%>
<p>About Test</p>
<% elseif InStr(URL, "/menu/") then %>
<p>Menu Test</p>
<% elseif InStr(URL, "/contact/") then %>
<p>Contact Test</p>
<% else %>
<p>Test</p>
<% End if %>Thanks in advance
NedCan I get some aid in converting the following ASP
code to work using JSP. I have never used JSP before
but I now need to because of a recent server change.
<%
DIM URL
URL = LCase(Request.ServerVariables("URL"))
if InStr(URL, "/about/") then
%>
<p>About Test</p>
<% elseif InStr(URL, "/menu/") then %>
<p>Menu Test</p>
<% elseif InStr(URL, "/contact/") then %>
<p>Contact Test</p>
<% else %>
<p>Test</p>
<% End if %>Thanks in advance
Ned<%
String sURL = request.getRequestURL();
if (sURL.indexOf("//about//") > 1) {
%>
<p>About Test</p>
<%
} else if (sURL.indexOf("//menu//") > 1) {
%>
<p>Menu Test</p>
<%
} else if ......
%>
I wont do the other cases. Im sure you can figure it out. Hope it helps! -
Contribute CS4 ignores template changes?
First, I'm new to Contribute. I understand the general idea
of what it does and how it works, but I'm clearly out of my element
on how it works with template files.
I'm setup as an administrator on a Contribute CS4
installation on WinXP. I can edit and publish pages with no
problems.
Except this: When I modify the template files for the site
(obtained from the server, modified, and replaced on the server),
the new modifications are not appearing in the newly-published
pages. I've verified that I'm working on the correct template for
the particular page, and I've even made sure to "refresh templates"
a couple times in case that worked. I've even gone so far as to
find the drafts of the pages I've been working on and make sure the
templates stored on my hard drive are properly updated (they are).
Am I wrong to expect Contribute to incorporate updates to the
template file? Am I being a complete bonehead and missing something
obvious (wouldn't be the first time)?
Any help would be appreciated. Thanks!I've just had to update 100+ template based pages on a
Contribute site. I ended up having to use Dreamweaver exclusively
for the change.
Contribute does not seem to be "aware" of template updates
when you update a template based page. When you edit a page based
on a template that has changed, it doesn't apply the change or give
you any means of applying the change.
Also, when I attempted to use Modify-Templates-Update Current
Page on a page in Dreamweaver using the File-Actions-Edit Page
Source in External Application, Contribute went, well, berserk,
acting like I wanted to change dozens of pages and files in the
site. Lots of manual clean-up after that.
So, I just used only Dreamweaver to update all the pages
based on the template, as well as updating the template itself.
It's possible to "break" a Dreamweaver template by updating the
template with another editor. -
Good morning to all of you.
I have used Dreamweaver at work for many years to manage our extensive classic ASP applications. I like the interface but I have found that programming with a darker background is much easier on my eyes. I found some dark code view background profiles that covered HTML/PHP/CFM files and loved how they looked on those type of projects but they were lacking ASP support. I took the time to create the profile for ASP Vbscript and then copied it to ASP Javascript so no matter what language I'm in they will be the same. It looks great but I have to fake out Dreamweaver to force it to view the code in the right file type. It seems Dreamweaver is pretty inconsistent with determining the ASP file/language type.
If I use:
<% @Language="vbscript" %>
It will load the correct profile and things seem well. If I don't do that, I not only don't get the correct coding but the commenting doesn't look right either. I have to end every line with that has a comment a single apostrophe as well to keep it from getting the code view appearance looking wrong.
This hackish attempt above works but it bad style. You can't define this more than once in a document and would be problmenatic if you use include files (who doesn't really?)...
I almost exclusively code ASP-VB. How can I make Dreamweaver read ALL ASP files in this the ASP-VB format by default? As it sits right now, it's totally wrong.
Thanks in advance,
Joe JenkinsIt's not so much doing with the actual language. It's the fact that Dreamweaver doesn't recognize that the .asp file is indeed ASP so it applied the wrong code view coloring, rules for comments and no suggestive code. If I am drop the language in the top of the file, this corrects THAT file but if you have multiple include files and you push it to your server like this (wish this language definition in each of those files) you will get an error from the server for multiple definitions.
Exmaple:
Top of main file:
<%@Language="vbscript" %>
<!--#include virtual="../aspinclude/dbconnect.asp"-->
<!--#include virtual="../aspinclude/utils.asp"-->
<!--#include virtual="../aspinclude/utils_workorders.asp"-->
Top of an included file:
<%@Language="vbscript" %>
<%
dim StartTime : StartTime = Timer()
Session.Timeout = 120
If you tried to fake out the code view by doing that to MAKE it view the file as an ASP-VB file, it's not only bad practice, it's redundant and the server will cough at it giving you an error that simply tells you that the declaration has to be on the first line. This is true, in the main file, but the included file would then put it inline on whatever line it happens to be as part of the compiled page which is invalid.
The main problem is that I have to fake out the code view by defining the language on every page I edit to get text-coloring right and other features. The question is can I make it always default to maybe ASP-VB unless explicitely defined something else like @Language="Javascript" ?
Joe Jenkins
Maybe you are looking for
-
SharePoint 2013 User Profile Synchronization service problem
After one week trying (three clean installs of SharePoint 2013), I haven't succeed to start "User Profile Synchronization service". Environment: Domain environment with two Windows Server 2012 R2 domain controllers. Fully qualified domain name match
-
Hi friends, I have some knowledge of month end acivities. here i mentioned .... 1)Open and close posting periods in FI .OB52 2)Close MM period ..MMPV 3) Collect and post all outstanding vendor Invoices F-43 4) Collect and post all customer Invoic
-
How to populate a sharepoint 2010 from the active directory. I want a list of all the computers in the active directory, another one with all users. I want also to populate a sharepoint 2010 list from the sharepoint user profiles. Thanks sz
-
Problem when upgrading from Gnome 3.0 to 3.2 [SOLVED]
Hi, I've been fighting for 2 days trying to fix this problem: after having upgraded from Gnome 3.0 to 3.2, I can't login anymore (I have this message telling me that something wrong happened and I should try again). Here is what I tried: - Removing ~
-
So basically i want my app to use the 2x pixel scaling ( requestedDisplayResolution : standard ) on any iOS devices that have a screen bigger then 1024x768 ( retina iPads ect. ) else, for iPods / iPhones / iPads below or at 1024x768 : the requestedDi