dropdownlist.aspx

来自「ASP.net+Access数据库源码数据库源码」· ASPX 代码 · 共 35 行

ASPX
35
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DropDownlist.aspx.cs" Inherits="DropDownlist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body style="background-color: silver">
    <form id="form1" runat="server" method="get" action="mainpage.aspx">
    <div>
        <table style="width: 180px" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 177px; height: 22px;" colspan="2">
                    <asp:Label ID="Label1" runat="server" Text="单位:" Width="49px"></asp:Label><br />
                    <asp:DropDownList ID="ddgongsi" runat="server" Width="147px" AutoPostBack="True" OnSelectedIndexChanged="ddgongsi_SelectedIndexChanged" style="background-color: silver">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 177px; height: 47px;" colspan="2">
                    <asp:Label ID="Label2" runat="server" Text="部门:" Width="48px"></asp:Label><br />
                    <asp:DropDownList ID="ddbumen" runat="server" Width="142px" OnSelectedIndexChanged="ddbumen_SelectedIndexChanged" style="background-color: silver">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td colspan="2" align="center" style="width: 177px">
                    <asp:Button ID="Button1" runat="server"  NavigateUrl="salen.aspx" target="mainFrame" Text="Button" OnClick="Button1_Click" style="background-color: silver" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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