string editText = RemoveHTML(Hidden1.Value); OleDbCommand cmd = new OleDbCommand(insertQuery, conn); cmd.CommandType = CommandType.Text; cmd.Parameters.AddWithValue("@EN", editText.ToString()); cmd.ExecuteNonQuery(); } public string RemoveHTML(string strHTML) { return Regex.Replace(strHTML, "<(.|\n)*?>", " "); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)