Re: Saving a file

  •  07-06-2010, 2:58 AM

    Re: Saving a file

    Hi jlclavijo,
     
    1. How to load the aspx file into editor
     
    Editor1.LoadFile("~/Default.aspx")
     
    If you need to edit aspx file, I suggest you do the below setting
     
        <CE:Editor ID="Editor1" runat="server" EditCompleteDocument="true" EnableStripScriptTags="false"
                AllowEditServerSideCode="true">
            </CE:Editor>
    2. How to get the content of editor
     
    Editor1.Text
    Editor work with database online example http://cutesoft.net/example/database-example.aspx, you can find the source coed in the download package.
     
    3. How to save the content of editor as a aspx file
     
    Editor1.SaveFile("~/default.aspx")
     
    Regards,
     
    Ken
View Complete Thread