<%@ Page language="c#" Codebehind="DataListSelect.aspx.cs" AutoEventWireup="false" Inherits="CommonFunction.DataListSelect" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>DataListSelect</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">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<h2>使用DataList控件的选择模板</h2>
			<asp:DataList id="dlselItem" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 48px" runat="server"
				Height="136px">
				<HeaderTemplate>
					人员信息
				</HeaderTemplate>
				<SelectedItemTemplate>
					姓名:<%#DataBinder.Eval(Container.DataItem,"LastName")%><BR>
					姓:<%#DataBinder.Eval(Container.DataItem,"FirstName")%><BR>
					标题:<%#DataBinder.Eval(Container.DataItem,"Title")%><BR>
					称谓:<%#DataBinder.Eval(Container.DataItem,"TitleOfCourtesy")%><BR>
					地址:<%#DataBinder.Eval(Container.DataItem,"Address")%><BR>
					城市:<%#DataBinder.Eval(Container.DataItem,"City")%><BR>
				</SelectedItemTemplate>
				<FooterTemplate>
					<hr color="red">
				</FooterTemplate>
				<ItemTemplate>
					<asp:Button id="look" CommandName="select" Text="选择" Runat="server"></asp:Button><%#DataBinder.Eval(Container.DataItem,"LastName")%>
				</ItemTemplate>
			</asp:DataList>
		</form>
	</body>
</HTML>
