Full Page and Page Properties Set in Code Behind

Last post 05-21-2009, 9:10 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  05-21-2009, 12:57 PM 52391

    Full Page and Page Properties Set in Code Behind

    I need to set Full Page and also enable the page properties from codebehind.  This is what I have so far but neither work

    Editor1.FullPage = True

    Editor1.EditorBodyStyle = What Do I put here???

  •  05-21-2009, 1:55 PM 52399 in reply to 52391

    Re: Full Page and Page Properties Set in Code Behind

    1. <%@ Page Language="C#"%>   
    2. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>   
    3.   
    4. <html>   
    5. <head>   
    6. </head>   
    7.     <body>   
    8.         <form runat="server">   
    9.         <CE:Editor id="Editor1" FullPage="true" runat="server"></CE:Editor>   
    10.     </form>   
    11.     </body>   
    12. </html>  

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-21-2009, 3:08 PM 52408 in reply to 52399

    Re: Full Page and Page Properties Set in Code Behind

    I need to be able to do this on the page load in the code behind.
     
    Graham
  •  05-21-2009, 9:10 PM 52413 in reply to 52391

    Re: Full Page and Page Properties Set in Code Behind

    Hi robinsong,

    Try this code:

    ---------------------------------------------------------------------------->

    <%@ Page Language="C#" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">
        protected override void OnLoad(EventArgs e)
        {
            editor1.FullPage = true;
            editor1.EditorBodyStyle = "background-color:Red;font: icon;color: yellow;";
            base.OnLoad(e);
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <CE:Editor ID="editor1" runat="server">
                </CE:Editor>
            </div>
        </form>
    </body>
    </html>

    ---------------------------------------------------------------------------->
    Regards,
     
    Ken

     

     

     

View as RSS news feed in XML