예제 #1
0
 protected void signup_Click(object sender, ImageClickEventArgs e)
 {
     if (Page.IsValid)
     {
         using (cseDataContextDataContext context = new cseDataContextDataContext())
         {
             tblStudent cse = new tblStudent();
             cse.UserName = txtName.Text;
             cse.Year     = txtYear.Text;
             cse.Roll_No  = txtRoll_No.Text;
             cse.Password = txtPassword.Text;
             cse.Email    = txtEmail.Text;
             context.tblStudents.InsertOnSubmit(cse);
             context.SubmitChanges();
         }
     }
 }
예제 #2
0
 partial void UpdatetblStudent(tblStudent instance);
예제 #3
0
 partial void DeletetblStudent(tblStudent instance);
예제 #4
0
 partial void InserttblStudent(tblStudent instance);