protected void ButtonAddSkill_Click(object sender, EventArgs e) { SkillController skillController = new SkillController(int.Parse(Session["userId"].ToString())); // createdBy=userId if (skillController.CreateSkill(txt_skillName.Text, txt_skillDesc.Text, int.Parse(ddl_Category.SelectedValue), ddl_Category.SelectedItem.Text)) { Response.Write("Successfully added " + txt_skillName.Text); } else { Response.Write("Error"); } Response.Redirect("SearchSkill.aspx"); }
protected void btnCreate_Click(object sender, EventArgs e) { objSC.CreateSkill(txtName.Text, txtDesc.Text, Convert.ToInt32(ddlCategory.SelectedItem.Value), 101, 101); }