예제 #1
0
    //protected void dgRole_PageIndexChanged(object source, DataGridPageChangedEventArgs e)
    //{
    //    this.dgRole.CurrentPageIndex = e.NewPageIndex;
    //    MyDataBind();
    //}

    protected void dgRole_DeleteCommand(object source, DataGridCommandEventArgs e)
    {
        if (UserManage.DelRole(this.Operator.OperatorID, Convert.ToInt32(e.Item.Cells[0].Text)))
        {
            Common.WebTools.Alert(this, "删除成功!");
            MyDataBind();
        }
        else
        {
            Common.WebTools.Alert(this, "删除失败!");
            return;
        }
    }