Click here to Skip to main content
15,923,006 members

Comments by 8400593361 (Top 2 by date)

8400593361 31-Mar-13 3:38am View    
I am facing the same problem in a application ..
Have You any solution for this ???
8400593361 18-Mar-13 8:24am View    
when i am using rich textbox and save it into the database then an error is displaying

A potentially dangerous Request.Form value was detected from the client (FreeTextBox1="HELLO").
my code is:
con.ConnectionString = ConfigurationManager.ConnectionStrings["trialmlmConnectionString"].ConnectionString;


SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandType = CommandType.StoredProcedure;

//demo1(@text nvarchar(max))
cmd.CommandText = "demo1";
cmd.Parameters.AddWithValue("@text", FreeTextBox1.Text);
try
{
con.Open();
cmd.ExecuteNonQuery();
con.Close();

}
catch (Exception ex)
{
Response.Write(ex.Message);
}