📄 datalistform.aspx
字号:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="DataListForm.aspx.vb" Inherits="ProductsPerCategory.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title></title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:dropdownlist id="DropDownList1" style="Z-INDEX: 101; LEFT: 24px; POSITION: absolute; TOP: 20px" runat="server" AutoPostBack="True" DataTextField="CategoryName" DataValueField="CategoryID" DataMember="Categories" DataSource="<%# DsCategories1 %>" Height="22px" Width="196px">
</asp:dropdownlist>
<asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 258px; POSITION: absolute; TOP: 21px" runat="server" Width="303px" Height="19px"></asp:Label>
<asp:datalist id="DataList1" style="Z-INDEX: 102; LEFT: 20px; POSITION: absolute; TOP: 53px" runat="server" DataMember="Products" DataSource="<%# DsProducts1 %>" Height="219px" Width="650px" BorderWidth="2px" CellPadding="3" BackColor="White" CellSpacing="1" BorderStyle="Ridge" BorderColor="White" RepeatColumns="3" DataKeyField="ProductID">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#9471DE"></SelectedItemStyle>
<AlternatingItemStyle BackColor="#FFFFC0"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#DEDFDE"></ItemStyle>
<ItemTemplate>
<strong>Product</strong><i>
<%# DataBinder.Eval(Container.DataItem, "ProductName") %>
</i>
<br>
<strong>Price</strong><i>
<%# DataBinder.Eval(Container.DataItem, "UnitPrice") %>
<br>
<strong>Packaging</strong> <i>
<%# DataBinder.Eval(Container.DataItem, "QuantityPerUnit") %>
</i>
<br>
<asp:Button id="bttnSeect" runat="server" Width="53px" Height="24px" Text="Select"></asp:Button>
</ItemTemplate>
<FooterStyle ForeColor="Black" BackColor="#C6C3C6"></FooterStyle>
<HeaderStyle Font-Bold="True" ForeColor="#E7E7FF" BackColor="#4A3C8C"></HeaderStyle>
<AlternatingItemTemplate>
<STRONG>Product</STRONG> <I>
<%# DataBinder.Eval(Container.DataItem, "ProductName") %>
</I>
<BR>
<STRONG>Price</STRONG> <I>
<%# DataBinder.Eval(Container.DataItem, "UnitPrice") %>
</I>
<BR>
<STRONG>Packaging</STRONG>
<%# DataBinder.Eval(Container.DataItem, "QuantityPerUnit") %>
<BR>
<asp:Button id="bttnSelect" runat="server" Width="53px" Height="24px" Text="Select"></asp:Button>
</AlternatingItemTemplate>
</asp:datalist>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -