webform1.aspx
来自「Mastering VBNet Include Source Code」· ASPX 代码 · 共 26 行
ASPX
26 行
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebProducts.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<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">
<asp:ListBox id="lstProducts" style="Z-INDEX: 101; LEFT: 28px; POSITION: absolute; TOP: 52px" runat="server" Width="289px" Height="168px" DataSource="<%# DsProducts1 %>" DataTextField="ProductName" DataValueField="ProductID" DataMember="Products" AutoPostBack="True">
</asp:ListBox>
<asp:TextBox id="txtSupplier" style="Z-INDEX: 105; LEFT: 338px; POSITION: absolute; TOP: 182px" runat="server" Width="235px" Height="26px" Text='<%# DataBinder.Eval(DsSelectedProducts1, "Tables[Products].DefaultView.[0].CompanyName") %>'>
</asp:TextBox>
<asp:TextBox id="txtStock" style="Z-INDEX: 104; LEFT: 338px; POSITION: absolute; TOP: 138px" runat="server" Width="106px" Height="24px" Text='<%# DataBinder.Eval(DsSelectedProducts1, "Tables[Products].DefaultView.[0].UnitsInStock") %>'>
</asp:TextBox>
<asp:TextBox id="txtPackage" style="Z-INDEX: 103; LEFT: 338px; POSITION: absolute; TOP: 96px" runat="server" Width="108px" Height="24px" Text='<%# DataBinder.Eval(DsSelectedProducts1, "Tables[Products].DefaultView.[0].QuantityPerUnit") %>'>
</asp:TextBox>
<asp:TextBox id="txtPrice" style="Z-INDEX: 102; LEFT: 338px; POSITION: absolute; TOP: 56px" runat="server" Width="77px" Height="26px" Text='<%# DataBinder.Eval(DsSelectedProducts1, "Tables[Products].DefaultView.[0].UnitPrice") %>'>
</asp:TextBox>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?