<%@ Page language="c#" Codebehind="RepeaterTemplate.aspx.cs" AutoEventWireup="false" Inherits="CommonFunction.数据绑定控件.RepeaterModel" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>RepeaterCss</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>使用REPEATER控件的模板</h2>
			<asp:Repeater id="RepeaterTem" runat="server">
				<HeaderTemplate>
					<h3>页眉模板－－人员信息</h3>
					<table>
				</HeaderTemplate>
				<ItemTemplate>
					<font color="blue">
						<%#DataBinder.Eval(Container.DataItem,"TitleOfCourtesy")%>
						<%#DataBinder.Eval(Container.DataItem,"LastName")%>
						<%#DataBinder.Eval(Container.DataItem,"FirstName")%>
					</font>
				</ItemTemplate>
				<AlternatingItemTemplate>
					<font color="red">
						<%#DataBinder.Eval(Container.DataItem,"TitleOfCourtesy")%>
						<%#DataBinder.Eval(Container.DataItem,"LastName")%>
						<%#DataBinder.Eval(Container.DataItem,"FirstName")%>
					</font>
				</AlternatingItemTemplate>
				<SeparatorTemplate>
					<hr color="#green" width="100%">
				</SeparatorTemplate>
				<FooterTemplate>
					</TABLE>
					<h3>页脚模板－－显示结束</h3>
				</FooterTemplate>
			</asp:Repeater>
		</form>
	</body>
</HTML>
