Please Help ... Does not save

Last post 01-29-2006, 2:13 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  12-05-2005, 4:14 PM 13411

    Please Help ... Does not save

     
    Please help, I have the code running
    Here is a link so you can see what happens

    The editor works fine it just does not save.

     
    This is in the form code.

    <%@ Register TagPrefix="ce" Namespace="CuteEditor" Assembly="CuteEditor" %> 


    < ce:editor id="Editor1" EditCompleteDocument="True" HelpUrl="default.aspx" UseRelativeLinks="False" UsePhysicalFormattingTags="True" EncodeHiddenValue="False" FullPage="True" EnableAntiSpamEmailEncoder="False" AllowEditServerSideCode="True" BreakElement="Br" ActiveTab="Code" runat="server" IEClientScriptMode="Normal" UseHTMLEntities="False" DisableAutoFormatting="True" CultureType="Server" Focus="True" ThemeType="Office2003_BlueTheme" RemoveTBODYTag="True" UseFontTags="True" UseSimpleAmpersand="True" style="z-index: 101; left: 8px; position: absolute; top: 8px"> < /ce:editor>


    Here is the code behind the form.

    Dim template As String

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      'Put user code to initialize the page here
      template = "templates\atry.htm"
      Editor1.LoadText(Request.PhysicalApplicationPath + "\" + template)
      Editor1.SetSecurityAllowModify(True)
    End Sub

    Private Sub Editor1_PostBackCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Editor1.PostBackCommand
      If e.CommandName = "Save" Then
        Editor1.SaveFile(Request.PhysicalApplicationPath + "\" + template)
      End If
    End Sub
     
  •  01-29-2006, 2:13 AM 15295 in reply to 13411

    Re: Please Help ... Does not save

    I've checked your site.
     
    After I click the save button, I got the following error:
     
    Value cannot be null. Parameter name: path
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: path
     
    Editor1.SaveFile(template);
    Line 50:    Response.Redirect("/admin/default.aspx?VisitorID=" + VisitorID + "&MenuItemID=" + MenuItemID + "&MenuID=" + MenuID);
    It looks like you the Parameter for Editor.SaveFile method is not correct.
     
    Keep me posted
     
     

    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