Problem with Saving Edited File

Last post 03-16-2006, 1:46 PM by parallel. 2 replies.
Sort Posts: Previous Next
  •  01-06-2006, 10:59 AM 14494

    Problem with Saving Edited File

    When I try to edit a file and save it with cute editor it is not saved. Cute Editor saves the new file but does not update it when I open that file and try to save it using Editor1.SaveFile(<filename>) method.
    Please help, its urgent.
  •  01-06-2006, 1:36 PM 14499 in reply to 14494

    Re: Problem with Saving Edited File

    Please clear your browser cache and try again.

    It looks like your application is still using the old files in your browser cache.

    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

  •  03-16-2006, 1:46 PM 17278 in reply to 14499

    Re: Problem with Saving Edited File

    I trieIm having the same problem. The edited file is not saved. The code is:

     Public Sub Editor1_PostBackCommand(ByVal Sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs)
            If String.Compare(e.CommandName, "Save", True) = 0 Then
               
                Try
                   If nuevoId = "" Then
                        Me.Label1.Visible = True
                        Me.Label1.Text = "Debe especificar un Identificador"
                    ElseIf Me.newTitle.Value = "" Then
                        Me.Label1.Visible = True
                        Me.Label1.Text = "Debe especificar un titulo"
                    Else
                        xNode = dataAccess.getNodoById(nuevoId)
                        pnode = dataAccess.getNodoById(pid)
                        If xNode Is Nothing Then
                            xNode = pnode.CloneNode(False)
                            If pid = "Root" Then
                                xNode.Attributes("levelRoot").Value = "true"
                            Else
                                xNode.Attributes("levelRoot").Value = "false"
                            End If
                            xNode.Attributes("default").Value = "false"
                            xNode.Attributes("Control").Value = "WUCHtmlRender"
                            xNode.Attributes("Title").Value = Me.newTitle.Value
                            xNode.Attributes("ID").Value = nuevoId
                            If pnode.Attributes("levelRoot").Value = "true" Then
                                xNode.Attributes("group").Value = "true"
                            Else
                                xNode.Attributes("group").Value = "false" 'una página se crea sin ser grupo
                            End If

                            pnode.AppendChild(xNode)
                            dataAccess.saveSiteMap()

                            Editor1.SaveFile(System.AppDomain.CurrentDomain.BaseDirectory & "/Resources/HtmlContent/" & Me.newID.Value & ".en.htm")
                        Else
                            Me.Label1.Text = "Ya existe un docuento con el ID: " & Me.newID.Value
                            Me.Label1.Visible = True
                        End If
                    End If

                Catch ex As Exception
                    Me.Label1.Text = ex.Message
                    Me.Label1.Visible = True
                End Try
            End If
        End Sub

    thanks

View as RSS news feed in XML