protected void Page_Load(object sender, EventArgs e) { //int id = int.Parse(Request.QueryString["ID"]); var x = Convert.ToInt32(Request.QueryString["ID"]); if (Page.IsPostBack == false) { var deger = _skilService.GetSingle(x); TextBox1.Text = deger.Yetenekler; } }
protected void Page_Load(object sender, EventArgs e) { string msg = ""; var x = Convert.ToInt32(Request.QueryString["ID"]); var yetenek = _skilService.GetSingle(x); _skilService.Delete(yetenek.ID, out msg); Response.Redirect("Yeteneklerim.aspx"); }