예제 #1
0
        protected void btnAdd2_Click(object sender, EventArgs e)
        {
            tParents x = new tParents();

            x.f家長姓名 = txtName2.Text;
            x.f家長生日 = txtBirthday2.Text;
            x.f家長密碼 = txtPassword2.Text;
            x.f身份區分 = exampleFormControlSelect2.Text;

            dbDemoDataContext db = new dbDemoDataContext();

            db.tParents.InsertOnSubmit(x);
            db.SubmitChanges();
            lblMsg2.Visible = true;
            lblMsg2.Text    = "新增資料成功";
        }
예제 #2
0
 partial void DeletetParents(tParents instance);
예제 #3
0
 partial void UpdatetParents(tParents instance);
예제 #4
0
 partial void InserttParents(tParents instance);