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

📄 userlist.aspx

📁 专业的办公oa代码下载 c#语言编写 三层结构
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="UserList.aspx.cs" AutoEventWireup="false" Inherits="qminoa.Webs.PM.UserList" %>
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>User List</title>
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<link href="styles.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="UserList" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td class="tab-active" vAlign="top" height="15"><img height="15" src="images/spacer.gif" width="15"></td>
				</tr>
			</table>
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td width="8"><img height="8" src="images/spacer.gif" width="8"></td>
					<td vAlign="top">
						<table class="admin-tan-border" height="530" cellSpacing="20" cellPadding="0" width="100%" border="0">
							<tr vAlign="top">
								<td><span class="header-gray">单位名称</span><asp:dropdownlist id="BranchDropList" runat="server" CssClass="standard-text" DataValueField="BranchID" DataTextField="BranchName" Width="91px" AutoPostBack="True"></asp:dropdownlist>&nbsp;&nbsp;&nbsp;
									<span class="header-gray">部门名称</span><asp:dropdownlist id="DepartmentDropList" runat="server" CssClass="standard-text" DataValueField="DepID" DataTextField="DepName" Width="91px" AutoPostBack="True"></asp:dropdownlist>&nbsp;&nbsp;&nbsp;
									<br>
									<asp:datagrid id="Users" runat="server" BorderStyle="None" Width="100%" CellPadding="2" AutoGenerateColumns="False" AllowSorting="True" BorderColor="White" AllowPaging="True">
										<headerstyle font-bold="True" cssclass="grid-header"></headerstyle>
										<columns>
											<asp:templatecolumn HeaderText="姓名" SortExpression="UserName">
												<headerstyle horizontalalign="Left" width="60%" cssclass="grid-header" verticalalign="Middle"></headerstyle>
												<itemstyle cssclass="grid-first-item"></itemstyle>
												<itemtemplate>
													<asp:label ID="UserName" Text='<%# DataBinder.Eval(Container, "DataItem.UserName") %>' Runat="server" />
												</itemtemplate>
												<edititemtemplate>
													<asp:label ID="Label1" Text='<%# DataBinder.Eval(Container, "DataItem.UserName") %>' Runat="server" />
												</edititemtemplate>
											</asp:templatecolumn>
											<asp:templatecolumn HeaderText="角色名称" SortExpression="RoleName">
												<headerstyle horizontalalign="Left" width="20%" cssclass="grid-header" verticalalign="Middle"></headerstyle>
												<itemstyle cssclass="grid-item"></itemstyle>
												<itemtemplate>
													&nbsp;
													<asp:label ID="lblGridRoleName" Text='<%# DataBinder.Eval(Container, "DataItem.RoleName") %>' Runat="server" Visible="true" />
												</itemtemplate>
												<edititemtemplate>
													<asp:DropDownList Width="100px" ID="ddlRoles" CssClass="Standard-text" DataSource='<%# GetRoles() %>' DataTextField="Name" DataValueField="RoleID" Runat="server" />
												</edititemtemplate>
											</asp:templatecolumn>
											<asp:templatecolumn Visible="False" HeaderText="UserID">
												<itemtemplate>
													<asp:label ID="lblGridUserID" Text='<%# DataBinder.Eval(Container, "DataItem.UserID") %>' Runat="server" Visible="true" />
												</itemtemplate>
											</asp:templatecolumn>
											<asp:templatecolumn HeaderText="编辑">
												<headerstyle horizontalalign="Center" width="20%" cssclass="grid-header" verticalalign="Middle"></headerstyle>
												<itemstyle cssclass="grid-edit-column"></itemstyle>
												<itemtemplate>
													<asp:imagebutton runat="server" ImageUrl="images/icon-pencil.gif" AlternateText="编辑此记录" CommandName="Edit" CausesValidation="false" ID="Imagebutton1" NAME="Imagebutton1"></asp:imagebutton>
													<img src="images/spacer.gif" width="3">
												</itemtemplate>
												<edititemtemplate>
													<asp:imagebutton runat="server" ImageUrl="images/icon-floppy.gif" AlternateText="更新此记录" CommandName="Update" CausesValidation="False" ID="Imagebutton3" NAME="Imagebutton3"></asp:imagebutton>
													<img src="images/spacer.gif" width="3">
													<asp:imagebutton runat="server" ImageUrl="images/icon-pencil-x.gif" AlternateText="取消" CommandName="Cancel" CausesValidation="False" ID="Imagebutton4" NAME="Imagebutton4"></asp:imagebutton>
												</edititemtemplate>
											</asp:templatecolumn>
										</columns>
										<pagerstyle horizontalalign="Center"></pagerstyle>
									</asp:datagrid>
								</td>
							</tr>
							<tr vAlign="top">
								<td colSpan="3" height="12"><img height="1" src="images/spacer.gif" width="1"></td>
							</tr>
						</table>
					</td>
					<td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
				</tr>
				<tr>
					<td vAlign="top" colSpan="5" height="15"><img height="15" src="images/spacer.gif" width="15"></td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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