Database issue

Last post 04-26-2004, 4:19 AM by HalRau. 2 replies.
Sort Posts: Previous Next
  •  04-14-2004, 5:27 PM 655

    Database issue

    I just purchased CuteEdit for ASP and already I like what I see. I do have a question regarding storing the Message information in a database. From my tests of the code each time the message is edited and saved it creates a new record in the database. After a number of changes to the messages the database could grow to huge proportions. Is there a way to modify the code so that it "updates" or writes over the existing record rather than writing a new one? If so could you please share the code with me.

     

    Thanks

  •  04-15-2004, 8:01 AM 659 in reply to 655

    Re: Database issue

    HalRau,

     

    The example code comes with the download package  creates a new record in the access database which you submit the form.

     

    I've found the update example for you. Please check this link

     

    Script Output:


    id text_field integer_field date_time_field Delete Edit
    595398 Thursday 15 4/15/2004 11:07:44 AM Delete Edit
    595399 Thursday 15 4/15/2004 11:09:58 AM Delete Edit
    595400 Thursday 15 4/15/2004 11:10:02 AM Delete Edit
    595401 Thursday 15 4/15/2004 11:10:02 AM Delete Edit
    595402 Thursday 15 4/15/2004 11:10:44 AM Delete Edit
    595403 Thursday 15 4/15/2004 11:11:07 AM Delete Edit
    Add a new record

     

     

    Hope it helps. Let me know if you have questions.

     

     


    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

  •  04-26-2004, 4:19 AM 721 in reply to 659

    Re: Database issue

    Thanks for the help. I got this working using a combination of Macromedia Dreamweaver MX Update Server behavior and some java script code that saves the edited content from the database back to the database. The java script is mainly for simultaneously saving the content from multiple editor windows on a page to the database when the "Update" button is clicked.
View as RSS news feed in XML