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

📄 formview.aspx

📁 wrox出版社的另一套经典的VB2005数据库编程学习书籍,收集了书中源码,郑重推荐,电子书,电子书下载
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ Page Language="VB" AutoEventWireup="false" 
CodeFile="FormView.aspx.vb" Inherits="FormView" %>

<!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 runat="server">
    <title>ASP.NET 2.0 Data Sources and Databound Controls Test Site</title>
</head>
<body>
    <form id="frmFormView" runat="server">
    <div>
		 <table style="width: 100%; height: 100%" cellspacing="0" cellpadding="0" bgcolor="gainsboro"
			 border="0" id="tblMain">
			 <tr>
				 <td style="height: 14px; width: 711px">
					 <span style="font-size: 14pt; font-family: Arial"><b>&nbsp;Test Web Site for Data Sources
					 and Controls - Editable FormView</b></span></td>
			 </tr>
			 <tr>
				 <td valign="top" style="width: 711px">
					 <asp:FormView ID="fvOrders" Runat="server" DataSourceID="dsFormView" DataKeyNames="OrderID"
						 Width="711px" Height="233px" BorderStyle="Solid" BorderWidth="0px" BorderColor="DimGray" AllowPaging="True">
						 <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast"></PagerSettings>
						 <EmptyDataRowStyle Font-Names="Verdana" Font-Size="10pt"></EmptyDataRowStyle>
						 <EditItemTemplate>
                             <table>
                                 <tr>
                                     <td style="width: 100px; height: 11px">
                                         OrderID:
                                     </td>
                                     <td style="width: 160px; height: 11px">
                                        <asp:Label ID="OrderIDLabel1" runat="server" Text='<%# Eval("OrderID") %>'></asp:Label></td>
                                     <td style="width: 100px; height: 11px">
                                         ShipName:</td>
                                     <td style="width: 303px; height: 11px">
                                        <asp:TextBox ID="ShipNameTextBox" runat="server" Text='<%# Bind("ShipName") %>' Width="248px"></asp:TextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 100px">
                                         CustomerID:
                                     </td>
                                     <td style="width: 160px">
                                    <asp:TextBox ID="CustomerIDTextBox" runat="server" Text='<%# Bind("CustomerID") %>' Width="59px"></asp:TextBox></td>
                                     <td style="width: 100px">
                                         ShipAddress:</td>
                                     <td style="width: 303px">
                                        <asp:TextBox ID="ShipAddressTextBox" runat="server" Text='<%# Bind("ShipAddress") %>' Width="248px"></asp:TextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 100px">
                                         EmployeeID:</td>
                                     <td style="width: 160px">
                                        <asp:TextBox ID="EmployeeIDTextBox" runat="server" Text='<%# Bind("EmployeeID") %>' Width="22px"></asp:TextBox></td>
                                     <td style="width: 100px">
                                         ShipCity:</td>
                                     <td style="width: 303px">
                                         <asp:TextBox ID="ShipCityTextBox" runat="server" Text='<%# Bind("ShipCity") %>' Width="148px"></asp:TextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 100px">
                                         OrderDate:</td>
                                     <td style="width: 160px">
                                         <asp:TextBox ID="OrderDateTextBox" runat="server" Text='<%# Bind("OrderDate") %>'></asp:TextBox>
                                     </td>
                                     <td style="width: 100px">
                                         ShipRegion:</td>
                                     <td style="width: 303px">
                                         <asp:TextBox ID="ShipRegionTextBox" runat="server" Text='<%# Bind("ShipRegion") %>' Width="148px"></asp:TextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 100px">
                                         RequiredDate:
                                     </td>
                                     <td style="width: 160px">
                                         <asp:TextBox ID="RequiredDateTextBox" runat="server" Text='<%# Bind("RequiredDate") %>'></asp:TextBox>
                                     </td>
                                     <td style="width: 100px">
                                         ShipPostalCode:
                                     </td>
                                     <td style="width: 303px">
                                         <asp:TextBox ID="ShipPostalCodeTextBox" runat="server" Text='<%# Bind("ShipPostalCode") %>' Width="148px"></asp:TextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 100px; height: 18px">
                                         ShippedDate</td>
                                     <td style="width: 160px; height: 18px">
                                         <asp:TextBox ID="ShippedDateTextBox" runat="server" Text='<%# Bind("ShippedDate") %>'> </asp:TextBox>
                                     </td>
                                     <td style="width: 100px; height: 18px">
                                         ShipCountry:</td>
                                     <td style="width: 303px; height: 18px">
                                         <asp:TextBox ID="ShipCountryTextBox" runat="server" Text='<%# Bind("ShipCountry") %>' Width="148px"></asp:TextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 100px">
                                         ShipVia:</td>
                                     <td style="width: 160px">
                                         <asp:TextBox ID="ShipViaTextBox" runat="server" Text='<%# Bind("ShipVia") %>' Width="24px"></asp:TextBox></td>
                                     <td style="width: 100px">
                                     </td>
                                     <td style="width: 303px">
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 100px; height: 1px;">
                                         Freight:</td>
                                     <td style="width: 160px; height: 1px;">
                                        <asp:TextBox ID="FreightTextBox" runat="server" Text='<%# Bind("Freight") %>' ></asp:TextBox>
                                     </td>
                                     <td style="width: 100px; height: 1px;">
                                     </td>
                                     <td style="width: 303px; height: 1px;">
                                     <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                                         Text="Update" Width="73px">
                                     </asp:Button>&nbsp; &nbsp;
                                     <asp:Button ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                                         Text="Cancel" Width="64px">
                                     </asp:Button>
                                     </td>
                                 </tr>
                             </table>
						 </EditItemTemplate>
						 <FooterStyle Font-Names="Verdana" Font-Size="10pt"></FooterStyle>
						 <RowStyle Font-Names="Verdana" Font-Size="10pt"></RowStyle>
						 <InsertItemTemplate>
                             <table style="width: 687px">
                                 <tr>
                                     <td style="width: 59px">
                                         CustomerID:</td>
                                     <td style="width: 9px">
                                         <asp:TextBox ID="CustomerIDTextBox" runat="server" Text='<%# Bind("CustomerID") %>' Width="89px"></asp:TextBox></td>
                                     <td style="width: 54px">
                                         ShipName:</td>
                                     <td style="width: 100px">
                                         <asp:TextBox ID="ShipNameTextBox" runat="server" Text='<%# Bind("ShipName") %>' Width="286px"></asp:TextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 59px">
                                         EmployeeID:</td>
                                     <td style="width: 9px">
                                         <asp:TextBox ID="EmployeeIDTextBox" runat="server" Text='<%# Bind("EmployeeID") %>' Width="28px"></asp:TextBox></td>
                                     <td style="width: 54px">
                                         ShipAddress:</td>
                                     <td style="width: 100px">
                                        <asp:TextBox ID="ShipAddressTextBox" runat="server" Text='<%# Bind("ShipAddress") %>' Width="285px"></asp:TextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 59px">
                                         OrderDate:</td>
                                     <td style="width: 9px">
                                         <asp:TextBox ID="OrderDateTextBox" runat="server" Text='<%# Bind("OrderDate") %>'></asp:TextBox>
                                     </td>
                                     <td style="width: 54px">
                                         ShipCity:
                                     </td>
                                     <td style="width: 100px">
                                         <asp:TextBox ID="ShipCityTextBox" runat="server" Text='<%# Bind("ShipCity") %>'></asp:TextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="width: 59px">
                                         RequiredDate:</td>
                                     <td style="width: 9px">
                                         <asp:TextBox ID="RequiredDateTextBox" runat="server" Text='<%# Bind("RequiredDate") %>'></asp:TextBox>
                                     </td>
                                     <td style="width: 54px">
                                         ShipRegion:
                                     </td>
                                     <td style="width: 100px">
                                         <asp:TextBox ID="ShipRegionTextBox" runat="server" Text='<%# Bind("ShipRegion") %>'></asp:TextBox>
                                     </td>
                                 </tr>

⌨️ 快捷键说明

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