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

📄 webform1.aspx

📁 从数据库中读取并添加到下拉列表中
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="dropdown_listbox.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebForm1</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">
			<FONT face="宋体">
				<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 296px; POSITION: absolute; TOP: 120px" runat="server">部门:</asp:Label>
				<asp:Label id="Label2" style="Z-INDEX: 102; LEFT: 296px; POSITION: absolute; TOP: 168px" runat="server">人员:</asp:Label>
				<asp:DropDownList id="DropDownList1" style="Z-INDEX: 103; LEFT: 352px; POSITION: absolute; TOP: 120px"
					runat="server" Width="288px" AutoPostBack="True"></asp:DropDownList>
				<asp:ListBox id="ListBox1" style="Z-INDEX: 104; LEFT: 352px; POSITION: absolute; TOP: 168px"
					runat="server" Width="288px" Height="240px"></asp:ListBox>
				<asp:Label id="Label3" style="Z-INDEX: 105; LEFT: 656px; POSITION: absolute; TOP: 120px" runat="server"
					Width="248px">将其AutoPostBack属性设置为true</asp:Label></FONT>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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