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()); } }
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()); } }