コード例 #1
0
ファイル: RoleManage.aspx.cs プロジェクト: zwt-zf/cms
 protected void LnkModify_Click(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "ModifyRole")
     {
         Page.Response.Redirect("AddRole.aspx?RoleID=" + e.CommandArgument.ToString());
     }
     if (e.CommandName == "Del")
     {
         B_Role.DelRoleByID(DataConverter.CLng(e.CommandArgument.ToString()));
         bind();
     }
     if (e.CommandName == "ModifyPower")
     {
         Page.Response.Redirect("RoleManager.aspx?id=" + e.CommandArgument.ToString());
     }
 }
コード例 #2
0
 protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "ModifyRole")
     {
         Page.Response.Redirect("AddRole.aspx?RoleID=" + e.CommandArgument.ToString());
     }
     if (e.CommandName == "Del")
     {
         B_Role.DelRoleByID(DataConverter.CLng(e.CommandArgument.ToString()));
         myBind();
     }
     if (e.CommandName == "ModifyPower")
     {
         Page.Response.Redirect("RoleAuthList.aspx?id=" + e.CommandArgument.ToString());
     }
     if (e.CommandName == "ListRolelist")
     {
         Page.Response.Redirect("AdminManage.aspx?id=" + e.CommandArgument.ToString());
     }
 }