Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string sql = string.Format("insert into tbluser(username,userpwd)values('{0}','{1}')", txtZH.Text, txtMM.Text);

            if (SqlHelper.ExecuteSql(sql) > 0)
            {
                f.BindData();
            }
            else
            {
                MessageBox.Show("添加失败");
            }
        }