string [] flag = adminuser.Flag.Split('/'); List<string> list = new List<string>(flag); if (list.Contains("9")) Response.Write("当前操作用户"+adminuser.UserName.ToString()); else Response.Write("<script>alert('您无权限进行此项操作');location.href='admin_main.aspx'</script>");