Exemplo n.º 1
0
    protected void Delete(object sender, EventArgs e)
    {
        LinkButton lnkRemove = (LinkButton)sender;

        crud hapus = new crud();

        hapus.Delete(lnkRemove.CommandArgument);

        Response.Write("<script>alert('Data Berhasil Dihapus');</script>");
        Response.Redirect("EditDeleteNewsCategory.aspx");
    }