📄 userall.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"AutoEventWireup="true" CodeFile="UserAll.aspx.cs" Inherits="Company_UserAll" %>
<asp:Content ID="yonghu" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<div><br />
<div style="width:79%;height:10px; text-align:center;"> <b>用 户 管 理</b></div>
<div style="width:79%; height:26px; text-align:right; padding-top:6px"><asp:Button ID="btnAddUser"
runat="server" CssClass="buttonCss" Text="添加用户" Height="20px" OnClick="btnAddUser_Click" /></div>
<div style="width:80%;background-color:#FBF7E6; text-align:center;">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectAllUsers"
BorderStyle="None" BorderWidth="1px" Width="99%" DataKeyNames="userid" AllowPaging="True" BackColor="#FFF7E7" BorderColor="#DEBA84" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound" PageSize="8">
<FooterStyle BackColor="#F7DFB5" ForeColor="#000066" />
<RowStyle ForeColor="#000066" BackColor="#BFE6F9" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<HeaderStyle BackColor="#66CCFF" Font-Bold="True" HorizontalAlign="Center"/>
<Columns>
<asp:BoundField DataField="UserId" HeaderText="用户ID" SortExpression="UserId" />
<asp:BoundField DataField="UserName" HeaderText="姓名" SortExpression="UserName" />
<asp:BoundField DataField="PassWord" HeaderText="密码" SortExpression="PassWord" />
<asp:TemplateField HeaderText="角色">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Style="position: relative" Text='<%# Eval("Role.RoleName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="用户详情">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Style="position: relative">详情</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="修改">
<ItemTemplate>
<asp:ImageButton ID="imBn" runat="server" CommandName="Up" ImageUrl="~/images/edit.gif" CommandArgument='<%#Eval("UserId") %>'
Style="position: relative" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="删除">
<ItemTemplate>
<asp:ImageButton ID="imBnDe" runat="server" CommandName="De" ImageUrl="~/images/delete.gif" CommandArgument='<%#Eval("UserId") %>'
Style="position: relative" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectAllUsers" runat="server" SelectMethod="SeUserAll"
TypeName="MyOffice.BLL.companyBLL"></asp:ObjectDataSource>
</div>
</div>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -