⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editroles.aspx

📁 非常不错的学校在线考试分析系统
💻 ASPX
字号:
<%@ import Namespace="System.Data" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%@ Register TagPrefix="User" TagName="AdminHeader" Src="~/Admin/Controls/AdminHeader.ascx" %>
<%@ Page Language="c#" smartnavigation="false" CodeBehind="EditRoles.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Communities.Admin.EditUsers.EditRoles" %>
<user:AdminHeader Title="Edit Roles" Runat="server" id="AdminHeader1" />
<h3>Add or Edit Roles</h3>
<div class="pageDescription" style="WIDTH:500px">
On this page you can create, edit, or delete roles for your users. Roles can be 
used to prohibit all but selected users from secure areas in your community. For 
example, only users in the Community-Administrators role have access to these 
administration pages.
<br>
<br>
Existing roles and descriptions of each role are available in the table below. 
System roles cannot be deleted from the community. Any other roles can be added, 
edited, or deleted from this page.
</div>
<form runat="Server">
<asp:DataGrid id="RoleList" AutoGenerateColumns="false" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="5" GridLines="Horizontal" Runat="Server">
<HeaderStyle Font-Bold="True" BackColor="#DCDDDE"></HeaderStyle>
<AlternatingItemStyle BackColor="#eeeeee"></AlternatingItemStyle>
<columns>
<asp:BoundColumn DataField="Role_RoleName" HeaderText="Role" />
<asp:BoundColumn DataField="Role_Description" HeaderText="Description" />
<asp:BoundColumn DataField="Role_IsSystem" ReadOnly="True" HeaderText="System" />
<asp:EditCommandColumn EditText="Edit" UpdateText="Update" CancelText="Cancel" />
<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
</columns>
</asp:DataGrid>
<p>
<asp:Panel id="pnlAddRole" Runat="Server">
<TABLE class="Form">
<TR>
<TD colSpan="2">Add Role</TD>
<TR>
<TD>Role Name:</TD>
<TD>
<asp:TextBox id="txtNewRole" Runat="Server"></asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" Runat="server" Text="*" ControlToValidate="txtNewRole"></asp:RequiredFieldValidator></TD>
</TR>
<TR>
<TD>Role Description:</TD>
<TD>
<asp:TextBox id="txtDescription" Runat="Server" Columns="40"></asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator2" Runat="server" Text="*" ControlToValidate="txtDescription"></asp:RequiredFieldValidator></TD>
</TR>
<TR>
<TD colSpan="2">
<asp:Button id="btnAdd" Runat="Server" Text="Add Role"></asp:Button></TD>
</TR>
</TABLE>
</asp:Panel>
</form>
<table cellpadding="3" cellspacing="0" border="0" class="body">
<tr>
<td><a href="Default.aspx">Return to Edit Users</a></td>
<td>|</td>
<td><a href="../Default.aspx">Return to Admin</a></td>
<td>|</td>
<td><a href="../../Default.aspx">Return to Site</a></td>
</tr>
</table>
</P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -