Editing .net aspx pages (including server tags/code)

  •  04-16-2009, 4:45 PM

    Editing .net aspx pages (including server tags/code)

    Hello,
    I am on the final part of the project i purchased CuteEditor for and have come across an issue editing .aspx server pages:-
     
    I have set the flags for AllowEditServerSideCode=True, EditCompleteDocument=True - the problem i have is when edited in 'cuteeditor' it is moving the server tags into the <head> block and also not showing the <style> section within the <head> tags its missing?
    --
    The source page is very simple a style reference for basic font bgcolor etc and 3 placeholders to fill with server content.
    -
    Source before editing=
    -------------------------------------------------------------------------------------------------------------------------------
     <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="Workflow._Default" %>
    <%
    @ Register assembly="CuteEditor" namespace="CuteEditor" tagprefix="CE" %>
    <%
    @ Register assembly="CuteEditor.ImageEditor" namespace="CuteEditor.ImageEditor" tagprefix="iws" %>
    <!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 id="Head1" runat="server">
    <title></title>
    <link href="Style1.css" rel="stylesheet" type="text/css" />
    </
    head>
    <body>
    <
    form id="form1" runat="server">
    <
    table width="800" align="center">
    <
    tr>
    <
    td align="center"><asp:PlaceHolder id="PlaceHeader" runat="server"></asp:PlaceHolder></td></tr>
    <
    tr>
    <
    td align="center"><asp:PlaceHolder id="PlaceMain" runat="server"></asp:PlaceHolder></td></tr>
    <
    tr>
    <
    td align="center"><asp:PlaceHolder id="PlaceFooter" runat="server"></asp:PlaceHolder></td></tr></table></form>
    </
    body>
    </html>
    -------------------------------------------------------------------------------------------------------------------------------
     
    Source within CuteEditor=
    -------------------------------------------------------------------------------------------------------------------------------
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
        <head id="Head1">
            <title></title>
            <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="Workflow._Default" %><%@ Register assembly="CuteEditor" namespace="CuteEditor" tagprefix="CE" %><%@ Register assembly="CuteEditor.ImageEditor" namespace="CuteEditor.ImageEditor" tagprefix="iws" %>
        </head>
        <body>
            <FORM id=form1 runat="server">
                <table width="800" align="center">
                    <tbody>
                        <tr>
                            <td align="center"><asp:PlaceHolder id="PlaceHeader" runat="server"></asp:PlaceHolder></td>
                        </tr>
                        <tr>
                            <td align="center"><asp:PlaceHolder id="PlaceMain" runat="server"></asp:PlaceHolder></td>
                        </tr>
                        <tr>
                            <td align="center"><asp:PlaceHolder id="PlaceFooter" runat="server"></asp:PlaceHolder></td>
                        </tr>
                    </tbody>
                </table>
            </form>
        </body>
    </html>
    -------------------------------------------------------------------------------------------------------------------------------
     
    CuteEditor definition block=
    -------------------------------------------------------------------------------------------------------------------------------
     <CE:Editor ID="Editor1" runat="server" CultureType="Server" CustomCulture="en-GB" Height="100px" ResizeMode="AutoAdjust" ResizeStep="10" UseFloatToolbar="True" Width="800px" ThemeType="Office2003_BlueTheme" StyleWithCSS="True" AllowEditServerSideCode="True" EditCompleteDocument="True" RemoveServerNamesFromUrl="False" UseFontTags="True"></CE:Editor>
    -------------------------------------------------------------------------------------------------------------------------------
     
    any help to resolve this quickly would be very appreciated, thank you
     
View Complete Thread