protected void btnAddUser_Click(object sender, EventArgs e) { PRToolDataContext db = new PRToolDataContext(); Usert user = new Usert(); user.UserName = txtUserName.Text; user.UserEmail = txtEmail.Text; user.SuperUserFlag = false; user.ActiveFlag = chkActive.Checked; db.Userts.InsertOnSubmit(user); db.SubmitChanges(); grdUsers.DataBind(); }
partial void UpdateUsert(Usert instance);
partial void DeleteUsert(Usert instance);
partial void InsertUsert(Usert instance);