📄 manageusers.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ManageUsers.ascx.cs" Inherits="TeachHelper_Controls_ManageUsers" %>
<table border="1" cellpadding="0" cellspacing="0" bordercolor="#6699CC" style="height: 34px; width: 561px;">
<tr>
<th valign="top" scope="col" style="height: 121px"><table border="0" cellpadding="0" cellspacing="0" style="width: 554px">
<tr>
<th width="360" height="29" bgcolor="#6699CC" scope="col">
查找用户 </th>
</tr>
<tr>
<td height="30"> 根据<asp:DropDownList ID="DropDownListFindCondition" runat="server">
<asp:ListItem>用户名</asp:ListItem>
<asp:ListItem>邮箱</asp:ListItem>
</asp:DropDownList>查找<asp:TextBox ID="TextBoxKey" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorKey" runat="server" ControlToValidate="TextBoxKey"
ErrorMessage="请输入关键字" ToolTip="请输入关键字">*</asp:RequiredFieldValidator>
<asp:Button ID="ButtonFindUser" runat="server" Text="查看用户" OnClick="ButtonFindUser_Click" ValidationGroup="ManageUsers" /></td>
</tr>
<tr>
<td style="height: 30px"> 查找关键字支持“%”“_”“[]”和“[^]”通配符。</td>
</tr>
</table>
<asp:Label ID="LabelMessage" runat="server" ForeColor="Red"></asp:Label></th>
</tr>
</table>
<asp:Panel ID="Panel1" runat="server" Height="49px" Visible="False" Width="341px">
<table height="123" border="1" cellpadding="0" cellspacing="0" bordercolor="#6699CC" style="width: 558px">
<tr>
<th valign="top" scope="col" style="width: 570px; height: 121px"><table border="0" cellpadding="0" cellspacing="0" style="width: 557px">
<tr>
<th height="29" bgcolor="#6699CC" scope="col" style="width: 593px"> 用户列表</th>
<th bgcolor="#6699cc" height="29" scope="col" style="width: 360px">
编辑角色</th>
</tr>
<tr>
<td style="height: 161px; width: 593px;" rowspan="3" valign="top"><asp:GridView ID="GridViewUser" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" OnRowCommand="GridViewUser_RowCommand" OnRowDataBound="GridViewUser_RowDataBound" Width="440px" AllowPaging="True" AllowSorting="True" OnPageIndexChanging="GridViewUser_PageIndexChanging">
<FooterStyle BackColor="White" ForeColor="#000066" />
<Columns>
<asp:BoundField DataField="UserName" HeaderText="用户名" ReadOnly="True" >
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:BoundField>
<asp:CheckBoxField DataField="IsOnline" HeaderText="在线">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:CheckBoxField>
<asp:ButtonField ButtonType="Image" CommandName="DeleteUser" HeaderText="删除用户" ImageUrl="~/TeachHelper/images/icon-delete.gif"
ShowHeader="True" Text="删除用户">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:ButtonField>
<asp:ButtonField ButtonType="Image" CommandName="EditRoles" HeaderText="编辑角色" ImageUrl="~/TeachHelper/images/icon-edit.gif"
ShowHeader="True" Text="编辑角色">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:ButtonField>
</Columns>
<RowStyle ForeColor="#000066" />
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</td>
<td rowspan="3" style="height: 161px; width: 360px;" valign="top" bgcolor="whitesmoke">
<asp:Label ID="LabelUser" runat="server" Text="用户:" Width="57px" Visible="False"></asp:Label>
<asp:Label ID="LabelUserValue" runat="server" Visible="False"></asp:Label><br />
<br />
<asp:CheckBoxList ID="CheckBoxListRoles" runat="server" AutoPostBack="True" OnSelectedIndexChanged="CheckBoxListRoles_SelectedIndexChanged" Visible="False">
</asp:CheckBoxList></td>
</tr>
<tr>
</tr>
<tr>
</tr>
</table></th>
</tr>
</table>
</asp:Panel>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -