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

📄 ordersrepeater.aspx

📁 wrox出版社的另一套经典的VB2005数据库编程学习书籍,收集了书中源码,郑重推荐,电子书,电子书下载
💻 ASPX
字号:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="OrdersRepeater.aspx.vb" Inherits="OrdersRepeater_aspx" EnableSessionState="True" Trace="True" TraceMode="SortByTime" %>
<%@ OutputCache Duration="60" VaryByParam="none"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>ASP.NET 2.0 XmlDataSource with Orders Repeater</title>
</head>
<body style="font-size: 12pt" bottommargin="10" topmargin="10">
	<form id="frmRepeater" runat="server">
    <div style="background-color: Gainsboro">
		 <div style="text-align: left">
 		 	<span style="font-size: 14pt; font-family: Arial"><b> &nbsp;Orders Repeater with XmlDataSource&nbsp;&nbsp;&nbsp;&nbsp;
			  <asp:LinkButton ID="lbTreeView" Runat="server" PostBackUrl="~/OrdersTreeView.aspx"
				  Font-Size="12pt">Orders TreeView</asp:LinkButton>&nbsp;&nbsp;&nbsp;
			  <asp:LinkButton ID="LinkButton1" Runat="server" PostBackUrl="~/OrdersGridView.aspx"
				  Font-Size="12pt">Orders GridView</asp:LinkButton>
			</b></span>
			 <table style="width: 750px; height: 419px; font-family: Verdana; font-size: 10pt" cellpadding="2" border="0">
				 <tr>
					 <td style=" height: 209px; background-color: gainsboro; width: 733px;" colspan="2">
						 <asp:Repeater ID="rptOrders" Runat="server" DataSourceID="xdsOrders">
						 <HeaderTemplate>
							<table cellpadding="1" cellspacing="3" border="0">
						 </HeaderTemplate>
						 <ItemTemplate>
							<tr>
								<td>OrderID:</td><td><b><%#XPath("OrderID")%></b></td><td>CustomerID:</td><td><b><%#XPath("CustomerID")%></b></td>
							</tr>
							<tr>
								<td>EmployeeID:</td><td><b><%#XPath("EmployeeID")%></b></td><td>OrderDate:</td><td><b><%#XPath("OrderDate")%></b></td>								
							</tr>
							<tr>
								<td>RequiredDate:</td><td><b><%#XPath("RequiredDate")%></b></td><td>ShippedDate:</td><td><b><%#XPath("ShippedDate")%></b></td>								
							</tr>
							<tr>
								<td>ShipVia:</td><td><b><%#XPath("ShipVia")%></td><td>Freight:</td><td><b>$<%#XPath("Freight")%></b></td>								
							</tr>
							<tr>
								<td>ShipName:</td><td><b><%#XPath("ShipName")%>&nbsp;&nbsp;&nbsp;&nbsp;</b></td><td>ShipAddress:</td><td><b><%#XPath("ShipAddress")%></b></td>								
							</tr>
							<tr>
								<td>ShipCity:</td><td><b><%#XPath("ShipCity")%></b></td><td>ShipRegion:</td><td><b><%#XPath("ShipRegion")%></b></td>								
							</tr>
							<tr>
								<td>ShipPostalCode:</td><td><b><%#XPath("ShipPostalCode")%></b></td><td>ShipCountry:</td><td><b><%#XPath("ShipCountry")%></b></td>								
							</tr>
						 </ItemTemplate>
						 <SeparatorTemplate>
							<td height="1" bgcolor="black"><td height="1" bgcolor="black"><td height="1" bgcolor="black"><td height="1" bgcolor="black">
						 </SeparatorTemplate>
						 <FooterTemplate>
							</table>
						 </FooterTemplate>
						 </asp:Repeater>
						 <asp:XmlDataSource ID="xdsOrders" Runat="server" DataFile="~/App_Data/Orders.xml" XPath="Northwind/Orders" >
						 </asp:XmlDataSource>
					 </td>
				 </tr>
			 </table>
		 </div>
    </div>
	</form>    
  </body>
</html>

⌨️ 快捷键说明

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