从零开始学ASP.NET(基础篇)(24) { string strConnection = ConfigurationSettings.AppSettings["SqlDatabase1"]; // 连接SqlServer数据库 SqlConnection conn = new SqlConnection(strConnection); // 建立SqlCommand SqlCommand cmd = conn.CreateCommand(); cmd.CommandText = "INSERT INTO NewsArticle (Title, SubTitle, Writer, Content) valueS (" + "'" + txtTitle.Text + "'," + "'" + txtSubTitle.Text + "',"