Пример #1
0
    protected void gv_ViewOrder_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        int          result     = 0;
        CustomerView ord        = new CustomerView();
        string       categoryID = gv_ViewOrder.DataKeys[e.RowIndex].Value.ToString();

        result = ord.OrderDelete(categoryID);
        if (result > 0)
        {
            Response.Write("<script>alert('Product Remove successfully');</script>");
        }
        else
        {
            Response.Write("<script>alert('Product Removal NOT successfully');</script>");
        }
        Response.Redirect("CustomerOrders.aspx");
    }