Setting up cute editor ( submit button and saving in db )

Last post 02-19-2009, 8:25 AM by afrika. 4 replies.
Sort Posts: Previous Next
  •  02-15-2009, 5:43 AM 48805

    Setting up cute editor ( submit button and saving in db )

    Hello
    We just setup cutesoft and set the toolbar to simple.
     
    However, how do we
     
    1. Add a submit button which submits to our website
     
    2. Save the users input in MS SQL database
     
    3. How do we retrieve the saved data from the database and display in a .net page ?
     
    4. Edit the displayed or saved data
     
     
    NB: We are still using the demo license
     
     
    thanks
    Ehi
  •  02-15-2009, 7:08 PM 48812 in reply to 48805

    Re: Setting up cute editor ( submit button and saving in db )

    Hi afrika,
     
    1. Add a submit button which submits to our website
     
    You can add any button for sumit, like  <asp:Button ID="sumit" Text="Sumit" runat="server" OnClick="sumit_Click" />
     
    2. Save the users input in MS SQL database
     
    You can use Editor1.Text to read the user input of Editor and save by a button click method, like:
     
     protected void sumit_Click(object sender, EventArgs e)
        {
            string userText = Editor1.Text;
            //write userText into your database
        }
     
    3. How do we retrieve the saved data from the database and display in a .net page ?
     
    You can read the data from your database and display in page use Editor1.Text, like:
     
        protected override void OnLoad(EventArgs e)
        {
                   base.OnLoad(e);
            //Editor1.Text=get data from your database
        }
     
    4. Edit the displayed or saved data
     
    When the data display in page, you can edit it and reference question1 to save it in database again.
     
     
    Regards,
     
    Ken
  •  02-15-2009, 10:54 PM 48819 in reply to 48812

    Re: Setting up cute editor ( submit button and saving in db )

    thanks a lot
  •  02-19-2009, 8:19 AM 49001 in reply to 48812

    Re: Setting up cute editor ( submit button and saving in db )

    Hello Again ken,
    thanks for the info above.  But could you please clarify this
     
    How do i display the save data in a .net page.
     
    The above code only displays it in the editor. But i want to display in a c# .net webpage
    thanks
    Ehi
  •  02-19-2009, 8:25 AM 49002 in reply to 49001

    Re: Setting up cute editor ( submit button and saving in db )

    Sorry I got it.
     
    Thanks. Cant delete the above
View as RSS news feed in XML