dropdownlist.aspx

来自「Microsoft?ASP.NET Programming with Micro」· ASPX 代码 · 共 27 行

ASPX
27
字号
<%@ Page language="c#" Codebehind="DropDownList.aspx.cs" AutoEventWireup="false" Inherits="Chapter_08.DropDownList" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>DropDownList</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">
        <form id="Form1" method="post" runat="server">
            <asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server">What's your favorite ice cream?</asp:Label>
            <asp:DropDownList id="DropDownList1" style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 32px"
                runat="server">
                <asp:ListItem Value="Chocolate">Chocolate</asp:ListItem>
                <asp:ListItem Value="Strawberry">Strawberry</asp:ListItem>
                <asp:ListItem Value="Vanilla">Vanilla</asp:ListItem>
            </asp:DropDownList>
            <asp:Button id="Button1" style="Z-INDEX: 103; LEFT: 120px; POSITION: absolute; TOP: 32px" runat="server"
                Text="Enter"></asp:Button>
            <asp:Label id="Label2" style="Z-INDEX: 104; LEFT: 8px; POSITION: absolute; TOP: 64px" runat="server"
                Font-Bold="True" Font-Size="Larger"></asp:Label>
        </form>
    </body>
</HTML>

⌨️ 快捷键说明

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