Exemplo n.º 1
0
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            tStudent x = new tStudent();

            x.f學生姓名 = txtName.Text;
            x.f學生生日 = txtBirthday.Text;
            x.f學生密碼 = txtPassword.Text;
            x.f學生性別 = ddlGender.Text;
            x.f身份區分 = exampleFormControlSelect1.Text;

            dbDemoDataContext db = new dbDemoDataContext();

            db.tStudent.InsertOnSubmit(x);
            db.SubmitChanges();
            lblMsg.Visible = true;
            lblMsg.Text    = "新增資料成功";
        }
Exemplo n.º 2
0
 partial void DeletetStudent(tStudent instance);
Exemplo n.º 3
0
 partial void UpdatetStudent(tStudent instance);
Exemplo n.º 4
0
 partial void InserttStudent(tStudent instance);