protected void  Msgok_Click(object sender, EventArgs e)
    {
        SqlConnection conn = new SqlConnection();
        conn.ConnectionString = "server=.;database=Msginfo;User ID=sa;Password=";
        conn.Open();
        
        SqlCommand cmd = new SqlCommand("insert into info(infobox,infolist,infoname,infophone) values('" +this.Msgbox.Text + "','" + this.Msglist.Text + "','" + this.Msgname.Text + "','" +Msgphone.Text + "')", conn);
        
        conn.Close();
       Response.Redirect("Result.aspx");
        
    }
这里的连接代码有问题吗,怎么数据老插不进数据库呢
希望帮忙解决一下