Exemple #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();
         }
     }
 }
 partial void UpdatetblStudent(tblStudent instance);
 partial void DeletetblStudent(tblStudent instance);
 partial void InserttblStudent(tblStudent instance);