Re: Need some basic help

  •  09-25-2006, 2:34 PM

    Re: Need some basic help

    Basically I've created two copies of all my pages. A set for administration (for editing) and a set the public will see.

    Here is what the viewable page looks like (using master pages):

    ==============================================================

    <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="audit.aspx.cs" Inherits="audit" Title="Blah" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <h1>Home Energy Audit</h1>

    <p>content here</p>

    <p>content here<br />
     Just call our customer service line (864) 555-5555.</p>

    </asp:Content>

    ================================================================


    Admin page looks almost the same, except I added the CuteEditor.

    ================================================================

    <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="~/admin/audit.aspx.cs" Inherits="audit" Title="Gaffney Board of Public Works: Audits" %>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>


    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <form runat="server">

    <CE:Editor id="Editor1" EditorWysiwygModeCss="../example.css" EditCompleteDocument="true" AllowPasteHtml="false" ThemeType="Office2003_BlueTheme" runat="server" ></CE:Editor><BR>
    <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Submit"></asp:Button><br />

    <h1>Home Energy Audit</h1>

    <p>some content here.</p>

    <p>more content (864) 555-5555.</p>


    </form>
    </asp:Content>

    ================================================================

    It is editing the content, but it is replacing everything with <html><head> etc.. How do I make it so only content inside the content placeholder is changed? Without adding new <html> tags (since they are on the master page)



View Complete Thread