Saving changes to Database

Last post 01-26-2004, 5:05 AM by outerjoin. 2 replies.
Sort Posts: Previous Next
  •  01-24-2004, 1:51 PM 248

    Saving changes to Database

    I'm trying to post back to the database but any changes I have
    made in the editor are not saved back to the database.

    When saving, the Request.form("TrainingDescription") and the
    Request.form("TrainingDescription_HTMLContent") objects contain
    the original content pulled from the database no matter what
    changes I have made.

    I looked at the code generated once the page had loaded and
    noticed a hidden tag that contained the original text pulled
    from the database.

    Any suggestions on saving the changes?

    Here's a code snippet:

    Dim editor
    Set editor = New CuteEditor

    editor.ID = "TrainingDescription"
    editor.Text = TrainingDescription
    editor.FilesPath = "../../CuteEditor_Files"
    editor.ImageGalleryPath = "../../NewImages"
    editor.MaxImageSize = 50
    editor.AutoConfigure = "Simple"
    editor.AllowUpload = True
    editor.ShowLogo = false
    editor.Width = 500
    editor.Draw()

    Thanks
  •  01-25-2004, 6:11 PM 250 in reply to 248

    Re: Saving changes to Database

    If you didn't use the save button, please check your submit button and make sure that you implement the onfocus event as followings:

     

    <input type="submit" value="Update" onfocus="save(Editor1)">


    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

  •  01-26-2004, 5:05 AM 253 in reply to 250

    Re: Saving changes to Database

    That did it Adam.  Thanks.
View as RSS news feed in XML