protected void Page_Load(object sender, EventArgs e) { int x = Convert.ToInt16(Request.QueryString["ID"]); DataSet1TableAdapters.TBLDENEYIMTableAdapter dt = new DataSet1TableAdapters.TBLDENEYIMTableAdapter(); dt.DeneyimSil(Convert.ToInt16(x)); Response.Redirect("AdminDeneyimler.aspx"); }
protected void Page_Load(object sender, EventArgs e) { int x = Convert.ToInt16(Request.QueryString["ID"]); DataSet1TableAdapters.TBLDENEYIMTableAdapter dt = new DataSet1TableAdapters.TBLDENEYIMTableAdapter(); if (Request.QueryString["ID"] != null) { dt.DeneyimSil(x); Response.Redirect("AdminDeneyimler.aspx"); } else { Response.Write("<script LANGUAGE='JavaScript' >alert('ID Yok')</script>"); } }