Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
how can i insert html editor content to sql server table.i have html editor (tinymce)..and one button.. on button click all the data in html editor is save to database table
Posted

Following should help you out: Integrating TinyMCE Editor with ASP.NET[^]
 
Share this answer
 
Use parametrized queries To insert content of Editor:

C#
using (SqlCommand com = new SqlCommand("INSERT INTO MyTable (message) " +
                                       "VALUES (@M)", con))
  {
     com.Parameters.AddWithValue("@M", @"""%$#@?,.;");
     com.ExecuteNonQuery();
  }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900