📄 searchemp.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchEmp.aspx.cs" Inherits="EmployeeInfo_SearchEmp" %>
<%@ Register Src="left.ascx" TagName="left" TagPrefix="uc2" %>
<%@ Register Src="../Common/header.ascx" TagName="header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>ShowEmpInfo</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<form id="Form1" method="post" runat="server">
<div>
<font face="宋体" size="small">
<table id="Table2" border="0" cellpadding="0" cellspacing="0" height="100%" style="z-index: 101;
left: 8px; position: absolute; top: 8px" width="100%">
<tr height="100" valign="top">
<td colspan="2" style="height: 100px">
<uc1:header id="Header1" runat="server">
</uc1:header></td>
</tr>
<tr valign="top">
<td align="left" bgcolor="#b0bccf" width="130">
<uc2:left ID="Left1" runat="server" />
</td>
<td align="center" valign="top">
<asp:Panel ID="pnlBody" runat="server" Height="10px" HorizontalAlign="Left" Width="700px">
<br />
<asp:Panel ID="pnlHeader" runat="server">
<asp:Panel ID="pnlPageFix" runat="server" Height="10px" Width="540px">
</asp:Panel>
<br />
<p>
<asp:Label ID="Label1" runat="server" Width="152px">请输入查询的姓名:</asp:Label></p>
<p>
<asp:TextBox ID="txtKey" runat="server" Font-Size="11px" OnTextChanged="txtKey_TextChanged"
Width="171px"></asp:TextBox><asp:Button ID="btnSearch" runat="server" Font-Bold="True"
Font-Names="Verdana" Font-Size="11px" OnClick="btnSearch_Click" Text="搜索" Width="79px" /></p>
<p>
<asp:Label ID="lblNoResult" runat="server" Width="152px" Visible="False">对不起,没有找到匹配的记录!</asp:Label>
<asp:Label ID="lblHaveResult" runat="server" Width="152px">查询结果如下:</asp:Label></p>
<asp:DataGrid ID="grdResult" runat="server" AutoGenerateColumns="False" BorderWidth="1px"
Font-Names="Verdana" Font-Size="14px" HorizontalAlign="Center" OnSelectedIndexChanged="grdResult_SelectedIndexChanged" Width="540px">
<Columns>
<asp:BoundColumn DataField="员工登录名" HeaderText="登陆名"></asp:BoundColumn>
<asp:BoundColumn DataField="员工姓名" HeaderText="姓名"></asp:BoundColumn>
<asp:HyperLinkColumn DataNavigateUrlFormatString="SearchEmp.aspx?DeptID={0}"
DataTextField="部门名称" HeaderText="部门"></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataNavigateUrlFormatString="mailto:{0}"
DataTextField="员工电子邮件" HeaderText="电子邮件"></asp:HyperLinkColumn>
</Columns>
</asp:DataGrid></asp:Panel>
<br />
</asp:Panel>
</td>
</tr>
</table>
</font>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -