protected void ButtonDeleteSkills_Click(object sender, EventArgs e) { LinkButton but = (LinkButton)sender; Business.SkillService.Remove(but.CommandArgument, UserId); ObjectDataSourceSkillsForUser.Update(); }
protected void ButtonSkills_Click(object sender, EventArgs e) { if (ValidateSkillsFormFields()) { Business.SkillService.InsertNewSkill(TextBoxCompeName.Text, TextBoxCompeDescription.Text, RatingNiveau.CurrentRating, UserId); ObjectDataSourceSkillsForUser.Update(); RazSkillsFormFields(); } else { MessageBox("Les champs Nom et Description doivent etre saisies"); } }