Я использую FCKEditor на своей странице.
, и я хочу сохранить его содержимое в базе данных .. но при выполнении этой ошибки A potentially dangerous Request.Form value was detected from the client (LongDescriptionVal="<p>hello..</p>").
происходит на моей странице ..
что яя делаю здесь: -
aspx.cs: -
protected void btnadd_Click(object sender, EventArgs e)
{
string _detail = Request["LongDescriptionVal"].ToString();
string query = "insert into Description(description) values('" + _detail.Trim() + "')";
SqlCommand cmd = new SqlCommand(query, con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
и aspx: -
<strong>Full Description :</strong>
<br />
<!--Editor Code comes here -->
<script type="text/javascript">
<!--
var oFCKeditor = new FCKeditor( 'LongDescriptionVal') ;
oFCKeditor.BasePath = 'fckeditor/';
oFCKeditor.Height = 300;
oFCKeditor.Value = '<%=FullDescription%>';
oFCKeditor.Create() ;
//-->
</script>
<br />
<asp:Button ID="btnadd" runat="server" Text="Add" OnClick="btnadd_Click" />
любой может сказать мне, что, как я могу сохранить данные набаза данных ...
Заранее спасибо ..