Пример #1
0
    protected void GridView3_OnRowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Remove")
        {
            int type = Convert.ToInt16(e.CommandArgument);
            input1.Inactive_ChangeType(type);
        }

        if (e.CommandName == "Active")
        {
            int type = Convert.ToInt16(e.CommandArgument);
            input1.Activate_ChangeType(type);
        }

        Response.Redirect("~/Admin_Dash_1.aspx");
    }