private void Button1_Click(object sender, System.EventArgs e)
{
string TiT=TextBox1.Text;
string na=TextBox2.Text;
string xinxi=TextBox3.Text;
string strconn=ConfigurationSettings.AppSettings["SQLConnectionSring"];
SqlConnection myConn=new SqlConnection(strconn);
string insertQuery="insert into info(title,name,letter) values ('"+TiT+', '"+na+"', '"+xinxi+"')";
SqlCommand myCommand=new SqlCommand(insertQuery,myConn);
myConn.Open();
myCommand.ExecuteNonQuery();
myConn.Close();
Response.Redirect("liuyan.aspx");
}
string insertQuery="insert into info(title,name,letter) values ('"+TiT+', '"+na+"', '"+xinxi+"')"
这个格式有什么问题啊?????????????//