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