using variable with load and save functions

Last post 09-20-2007, 9:52 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  09-19-2007, 8:03 PM 33660

    using variable with load and save functions

    Hello,
     
    New to this software. I was able to get things up and running and be able to edit a file.  Here is what I am trying to accomplish now:
     
    I created a page with a form that lists all updateable pages on a site, upon clicking I want to pass this information as a variable into the editor.savefile and loadhtml methods.  That way - only 1 page with webeditor will be able to modify several different files.
     
    How can I go about doing this?  It seems like it should be relatively easy, but I am having difficulties.
     
    Please help
     
    Thanks
  •  09-20-2007, 9:52 AM 33667 in reply to 33660

    Re: using variable with load and save functions

    ssidoti,
     
    Please check this example:
     
     
    The source code of this example can be found in the download package.
     
    Both SaveFile and LoadHtml method acceptes only one parameter: The name and location of the file.
     

    Editor.SaveFile Method 

    Saves the contents of the Cute Editor to a file.

    Parameters

    path The name and location of the file to save.

    Remarks

    The SaveFile method enables you to save the entire contents of the control to a file. If the file name that is passed to the path parameter already exists at the specified directory, the file will be overwritten without notice. You can use the LoadFile, LoadWord, LoadRTF, LoadText method to load the contents of a file into the CuteEditor.

    Example

    editor1.SaveFile("~/doc/myHtmlfile.htm");

    Editor.LoadHtml Method 

    Loads the contents of a HTML file into the CuteEditor control.

    Parameters

    _filename The html file to load into CuteEditor

    Example

    editor1.LoadHtml("~/doc/myhtml.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

View as RSS news feed in XML