FreeTextBox1.6.3用过这个控件的,快来看看,着急!!!
string s = Server.HtmlEncode(FreeTextBox1.Text);
Response.Write(s);
SqlConnection myconn = new SqlConnection("server=***;database=**;user id=**;password=***");
myconn.Open();
SqlCommand sqlcom = new SqlCommand();
sqlcom.Connection = myconn;
sqlcom.CommandType = CommandType.Text;
sqlcom.CommandText = " INSERT INTO new1(newss) VALUES ('"+ s +"')";
sqlcom.ExecuteNonQuery();
myconn.Close();
只要我里面一插入图片,他就会报错,应该怎么处理?
再线等!QQ:82697180