default.aspx

来自「完全网站系统」· ASPX 代码 · 共 63 行

ASPX
63
字号
<%@ Page Language="c#" CodeBehind="Default.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Communities.Admin.EditUsers._Default" %>
<%@ Register TagPrefix="User" TagName="AdminHeader" Src="~/Admin/Controls/AdminHeader.ascx" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%@ import Namespace="ASPNET.StarterKit.Communities.Admin" %>
<user:AdminHeader Title="Edit Users" Runat="server" id="AdminHeader1" />
<h3>Edit Users</h3>
<div class="pageDescription" style="WIDTH:500px">
The Edit Users page allows you to add, edit, delete, or view information about the 
users in your community. You can view all users at once, or alphabetically by 
letter. Furthermore, you can sort your results by username, the user's full name, 
or by the date joined. To edit a user, click on the desired username.
<br>
<br>
From this page, you can also create, edit, or delete roles for your users. You can 
use roles to control who can view, add, edit, delete, moderate, or comment on 
content.
</div>
<form runat="server">
<table width="100%">
<tr>
<td>
<community:AlphaPicker id="ctlAlphaPicker" Runat="Server" />
</td>
<td>
Sort By:
<asp:DropDownList id="dropSortBy" AutoPostBack="True" Runat="Server">
<asp:ListItem Text="Username" Value="0" />
<asp:ListItem Text="Full Name" Value="1" />
<asp:ListItem Text="Date Joined" Value="2" />
</asp:DropDownList>
</td>
<td>
Order By:
<asp:DropDownList id="dropOrderBy" AutoPostBack="True" Runat="Server">
<asp:ListItem Text="Ascending" value="0" />
<asp:ListItem Text="Descending" value="1" />
</asp:DropDownList>
</td>
</tr>
</table>
<p>
<asp:DataGrid id="UserList" width="100%" AutoGenerateColumns="False" AllowPaging="True" PageSize="20" PagerStyle-Mode="NumericPages" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" GridLines="Vertical" Runat="Server">
<HeaderStyle Font-Bold="True" BackColor="#DCDDDE"></HeaderStyle>
<AlternatingItemStyle BackColor="#eeeeee"></AlternatingItemStyle>
<columns>
<asp:HyperLinkColumn DataTextField="User_Username" DataNavigateUrlField="User_Username" DataNavigateUrlFormatString="EditUser.aspx?username={0}" HeaderText="Username" />
<asp:BoundColumn DataField="FullName" HeaderText="Full Name" />
<asp:BoundColumn DataField="User_DateCreated" DataFormatString="{0:d}" HeaderText="Date Joined" />
</columns>
</asp:DataGrid>
<p>
<table cellpadding="3" cellspacing="0" border="0" class="body">
<tr>
<td><a href="EditRoles.aspx">Edit Roles</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>
</form>
</P>

⌨️ 快捷键说明

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