Copy link to clipboard
Copied
Copy link to clipboard
Copied
I ran into this problem. I have lots of course pages that pull data from a database using ASP.NET. I have a aspx template file that's used to update all the course pages. Each time I'd change the template, it modified the code outside of the <html> tag.
The solution was to add a comment in the content pages as in -
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="course_111.aspx.cs" Inherits="Kayak.Pages.course_111" %>
<%–’comment–%>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
...
My template has -
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="course.aspx.cs" Inherits="Kayak.Pages.course" %>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
no comment in the template.
The codeOutsideHTMLIsLocked isn't changed from the default "false".
Now updating the template will update all course pages and not touch the code outside the <html> tags.
Found this at http://websitebuildersresource.com/2008/11/28/195/. This post said that this was a known issue but I couldn't find the article mentioned.
Copy link to clipboard
Copied
Slight change to my last post -
If I include the comment in the template, that gets added to a newly created page. Subsequent updates to template will not change the content page because the comment is there.
It works for me...
Copy link to clipboard
Copied
You can place your @code in the head editable region, i.e.:
<!-- InstanceBeginEditable name="head" -->
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="form.aspx.cs" Inherits="fr_form" %>
<!-- InstanceEndEditable -->
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more