protected void Process(object source, DataListCommandEventArgs e)
    {
        int id = 0;

        try
        {
            string commandname = e.CommandName.ToString();
            id = Convert.ToInt32(Convert.ToString(e.CommandArgument));

            if (perm.RevokePermission(id))
            {
                value = 1;
            }
            else
            {
                value = 0;
            }

            FillGrid();
        }
        catch (Exception ex)
        {
            value = 0;
        }


        if (value == 1)
        {
            message = "File permissions revoked successfully..";
            title   = "Success Report";

            string script = "window.onload = function(){ alert('";
            script += message;
            script += "')};";
            ClientScript.RegisterStartupScript(this.GetType(), title, script, true);
        }
        else if (value == 0)
        {
            message = "Sorry.!! File permissions revoke failed.. Try again..";
            title   = "Failure Report";

            string script = "window.onload = function(){ alert('";
            script += message;
            script += "')};";
            ClientScript.RegisterStartupScript(this.GetType(), title, script, true);
        }
    }