won't save the edited html

Last post 05-17-2005, 5:39 PM by lerien. 7 replies.
Sort Posts: Previous Next
  •  05-17-2005, 2:18 PM 6770

    won't save the edited html

    when i tried to save the edited template, it saves the original format of the template, not the copy i have just edited... here's an excerpt of my code below, please help!!!  thank  you so much!!
     

    PrivateSub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load

    'Put user code to initialize the page here

    Editor1.LoadHtml("~/Templates/career.html")

    Editor1.HelpUrl = "http://localhost/brousaCMS/Help/help1.aspx"

    EndSub

    PrivateSub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click

    IfNot txtFilename.Text IsNothingThen

    Editor1.SaveFile("~/brousaCMS2/doc/career/" & txtFilename.Text & ".html")

    btnSubmit.Visible =

    False

    Editor1.Visible =

    False

    lbSubmit.Visible =

    True

    Panel1.Visible =

    False

    Label2.Visible =

    False

    EndIf

    EndSub
  •  05-17-2005, 3:23 PM 6774 in reply to 6770

    Re: won't save the edited html

    It's strange.
     
    Do you have the same problem here?
     
     
    If no, can you paste your entire aspx page?
     
     

    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

  •  05-17-2005, 3:55 PM 6776 in reply to 6774

    Re: won't save the edited html

    I don't have the same problem in http://cutesoft.net/example/Edithtml.aspx
     
    Here's my entire ASPX page below:
     
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <%@ Register TagPrefix="uc1" TagName="titleNoLogin" Src="includes/titleNoLogin.ascx" %>
    <%@ Page Language="vb" CodeBehind="career.aspx.vb" AutoEventWireup="false" Inherits="brousaCMS.career" %>
    <HTML>
     <HEAD>
      <title>brousamanger - Content Management System</title>
      <LINK href="Styles.css" type="text/css" rel="stylesheet">
     </HEAD>
     <body bgColor="#e6e6dc">
      <TABLE height="146" cellSpacing="0" cellPadding="0" width="754" border="0">
       <TR vAlign="top">
        <TD width="754" height="146">
         <TABLE height="145" cellSpacing="0" cellPadding="0" width="753" border="0">
          <TR vAlign="top">
           <TD width="753">
            <form id="Form1" runat="server">
             <uc1:titlenologin id="TitleNoLogin1" runat="server"></uc1:titlenologin><br>
             <asp:Label id="Label1" runat="server" CssClass="medbluetitle">To inform - Career in Home Sewing</asp:Label><br>
             <ce:Editor id="Editor1" runat="server" EditorWysiwygModeCss="Styles.css" Height="500px">
              <FrameStyle Height="100%" BorderWidth="1px" BorderStyle="Solid" BorderColor="Silver" Width="100%"
               CssClass="CuteEditorFrame" BackColor="White"></FrameStyle>
              <PageProperties Title="" Description="" HtmlBase="" Keywords=""></PageProperties>
             </ce:Editor>
             <BR>
             <asp:Panel id="Panel1" runat="server"><SPAN class="med">Filename:</SPAN>&nbsp;&nbsp;
    <asp:TextBox id="txtFilename" runat="server" CssClass="form"></asp:TextBox>&nbsp;
    <asp:button id="btnSubmit" CssClass="formButton" Text="Save HTML" Runat="server"></asp:button>
    <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" CssClass="reqfield" ControlToValidate="txtFilename"
               ErrorMessage="File Name is required!"></asp:RequiredFieldValidator></asp:Panel><br>
             <asp:Label id="Label2" runat="server" CssClass="reqfield">No file extension needed, file will be saved as filename.html</asp:Label><br>
             <asp:Label id="lbSubmit" runat="server" CssClass="medbluetitle" Visible="False">Thanks, your article has been submitted</asp:Label>
            </form>
           </TD>
          </TR>
         </TABLE>
        </TD>
       </TR>
      </TABLE>
     </body>
    </HTML>
     
    ==============================================
     
    Below is the code-behind to the aspx page above:
     
    Imports System.IO
    Imports System.Web
    Imports System.Text
    Imports System.Web.Mail
    Public Class career
        Inherits System.Web.UI.Page
    #Region " Web Form Designer Generated Code "
        'This call is required by the Web Form Designer.
        <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        End Sub
        Protected WithEvents Form1 As System.Web.UI.HtmlControls.HtmlForm
        Protected WithEvents Label1 As System.Web.UI.WebControls.Label
        Protected WithEvents Editor1 As CuteEditor.Editor
        Protected WithEvents Label2 As System.Web.UI.WebControls.Label
        Protected WithEvents lbSubmit As System.Web.UI.WebControls.Label
        Protected WithEvents Panel1 As System.Web.UI.WebControls.Panel
        Protected WithEvents RequiredFieldValidator1 As System.Web.UI.WebControls.RequiredFieldValidator
        Protected WithEvents btnSubmit As System.Web.UI.WebControls.Button
        Protected WithEvents txtFilename As System.Web.UI.WebControls.TextBox
        'NOTE: The following placeholder declaration is required by the Web Form Designer.
        'Do not delete or move it.
        Private designerPlaceholderDeclaration As System.Object
        Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
            'CODEGEN: This method call is required by the Web Form Designer
            'Do not modify it using the code editor.
            InitializeComponent()
        End Sub
    #End Region
        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
            Editor1.LoadHtml("~/Templates/career.html")
            Editor1.HelpUrl = "http://localhost/brousaCMS/Help/help1.aspx"
        End Sub
        Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
            If Not txtFilename.Text Is Nothing Then
                Editor1.SaveFile("~/brousaCMS2/doc/career/" & txtFilename.Text & ".html")
                btnSubmit.Visible = False
                Editor1.Visible = False
                lbSubmit.Visible = True
                Panel1.Visible = False
                Label2.Visible = False
            End If
        End Sub
    End Class
    ===================================================
     
    Thanks in advance for your help!
     
    Lois
  •  05-17-2005, 4:10 PM 6777 in reply to 6776

    Re: won't save the edited html

  •  05-17-2005, 4:18 PM 6778 in reply to 6777

    Re: won't save the edited html

    so it should be an issue with the license either, right?
  •  05-17-2005, 4:25 PM 6779 in reply to 6778

    Re: won't save the edited html

    lerien,
     
    This has nothing to do with the license.
     
    The trial version has full functions of CuteEditor.
     
     

    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

  •  05-17-2005, 4:41 PM 6780 in reply to 6779

    Re: won't save the edited html

    Found the problem.
     

    Change the following code:

        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
            Editor1.LoadHtml("~/Templates/career.html")
            Editor1.HelpUrl = "http://localhost/brousaCMS/Help/help1.aspx"
        End Sub
        Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
            If Not txtFilename.Text Is Nothing Then
                Editor1.SaveFile("~/brousaCMS2/doc/career/" & txtFilename.Text & ".html")
                btnSubmit.Visible = False
                Editor1.Visible = False
                lbSubmit.Visible = True
                Panel1.Visible = False
                Label2.Visible = False
            End If
     
    to:
     
        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            If Page.IsPostBack Then
                 If Not txtFilename.Text Is Nothing Then
                    Editor1.SaveFile("~/brousaCMS2/doc/career/" & txtFilename.Text & ".html")
                    btnSubmit.Visible = False
                    Editor1.Visible = False
                    lbSubmit.Visible = True
                    Panel1.Visible = False
                    Label2.Visible = False
                End If
           Else        
                'Put user code to initialize the page here
                Editor1.LoadHtml("~/Templates/career.html")
                Editor1.HelpUrl = "http://localhost/brousaCMS/Help/help1.aspx"
            End If      
        End Sub
     
     

    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

  •  05-17-2005, 5:39 PM 6781 in reply to 6780

    Re: won't save the edited html

    that does work indeed, thank you very much!
     
    lerien
View as RSS news feed in XML