<%@ Page language="c#" Codebehind="DataListStyle.aspx.cs" AutoEventWireup="false" Inherits="CommonFunction.DataListStyle" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>DataListStyle</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" bgColor="#ccccff">
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" style="Z-INDEX: 102; LEFT: 336px; POSITION: absolute; TOP: 80px" cellSpacing="1"
				cellPadding="1" width="300" border="0">
				<TR>
					<TD><h2>在DataList控件中使用样式</h2>
					</TD>
				</TR>
				<TR>
					<TD align="center">
						<asp:DataList id="dluse" runat="server" Width="256px">
							<HeaderTemplate>
								人员信息
							</HeaderTemplate>
							<AlternatingItemStyle BackColor="Yellow"></AlternatingItemStyle>
							<SeparatorStyle BorderStyle="Ridge" BorderColor="Red" BackColor="#FF8000"></SeparatorStyle>
							<FooterTemplate>
								页脚
							</FooterTemplate>
							<ItemStyle BorderStyle="Outset" BorderColor="Blue" BackColor="#80FFFF"></ItemStyle>
							<ItemTemplate>
								<%#DataBinder.Eval(Container.DataItem,"TitleOfCourtesy")%>
								<%#DataBinder.Eval(Container.DataItem,"LastName")%>
								<%#DataBinder.Eval(Container.DataItem,"FirstName")%>
							</ItemTemplate>
							<FooterStyle BorderColor="Red" BackColor="Blue"></FooterStyle>
							<SeparatorTemplate>
								<hr>
							</SeparatorTemplate>
							<HeaderStyle BorderStyle="Solid" BorderColor="#00C000" BackColor="#FF8080"></HeaderStyle>
						</asp:DataList></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
