62,025
社区成员
发帖
与我相关
我的任务
分享
string getid = Request["id"].ToString();
string strreply = TextBox1.Text.Trim();
string conm = "Server=.;Database= wuliu;Integrated Security=SSPI";
SqlConnection con = new SqlConnection(conm);
con.Open();
SqlCommand cmd = new SqlCommand("update liuyan set 回复='" + strreply + "'where(id='" + getid + "')", con);
int count = cmd.ExecuteNonQuery();
if (count > 0)
{
Response.Write(" <script> alert('留言成功'); </script>)");
}
con.Close();