📄 dropdownlist.aspx
字号:
<%@ 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -