Re: Full Page and Page Properties Set in Code Behind

  •  05-21-2009, 9:10 PM

    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 Complete Thread