ASP.NET对HTML页面元素进行权限控制(三)
2024-07-10 12:44:10
供稿:网友
上一篇博客中有些没有考虑到的东西这次更改一下代码如下:
界面前台:
代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdmShowDIV.aspx.cs" Inherits="ExamSystemV3.Manager.RoleManager.AdmShowDIV" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Author" content="kudychen@gmail.com" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<script src="../../js/DIV/jquery.js" type="text/javascript"></script>
<script src="../../js/DIV/DIV.js" type="text/ecmascript"></script>
<link href="../../css/admin.global.css" rel="stylesheet" type="text/css" />
<link href="../../css/admin.content.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../../js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../../js/jquery.utils.js"></script>
<link href="../../jBox/Skins/Green/jbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../jBox/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript" src="../../js/admin.js"></script>
<script type="text/javascript" src="../../js/SimpleTree.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div class="container">
<div class="location">当前位置:界面元素管理 -> 查看界面元素</div>
<div class="blank10"></div>
<div class="search block">
<div class="h">
<span class="icon-sprite icon-magnifier"></span>
<h3>快速搜索</h3>
</div>
<div class="tl corner"></div><div class="tr corner"></div><div class="bl corner"></div><div class="br corner"></div>
<div class="cnt-wp">
<div class="cnt">
<div class="search-bar" id="SelectRole">
<label class="txt-green">请选择界面:</label>
<asp:DropDownList ID="DdlWindowsName" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DdlWindowsName_SelectedIndexChanged">
</asp:DropDownList>
<a class="btn-lit" href="#" onclick="WindowsInfo()"><span>扫描界面信息</span></a>
</div>
</div>
</div>
</div>
</div>
<div class="block">
<div class="h">
<span class="icon-sprite icon-list"></span>
<h3>界面详情</h3>
</div>
<div class="tl corner"></div>
<div class="tr corner"></div>
<div class="bl corner"></div>