main.aspx

来自「这是一个公交查询系统」· ASPX 代码 · 共 65 行

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

<!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>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <table border="0" cellpadding="0" cellspacing="0" style="font-size: 14pt; color: #000000;
            position: static; height: 366px; background-color: #ffffff" width="800">
            <tr>
                <td colspan="3" style="height: 28px">
                    <asp:Label ID="lbTime2" runat="server" Style="left: -148px; position: relative; top: 0px"
                        Text="Label" Width="117px"></asp:Label>
                    <asp:Label ID="lbTime" runat="server" Style="left: -393px; position: relative; top: 0px"
                        Width="116px"></asp:Label></td>
            </tr>
            <tr>
                <td style="height: 115px">
                    <asp:Image ID="imgT" runat="server" Height="115px" ImageUrl="~/image/kcT.jpg" Style="position: relative"
                        Width="800px" /></td>
            </tr>
            <tr>
                <td colspan="3" style="height: 319px" valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" style="position: static; height: 321px"
                        width="100%">
                        <tr>
                            <td colspan="3" style="height: 20px">
                                &nbsp;<strong>城市名称:</strong> <strong>&nbsp;<asp:DropDownList ID="dddlCity" runat="server"
                                    DataSourceID="SqlDataSourceCity" DataTextField="终点站" DataValueField="终点站" >
                                </asp:DropDownList>
                                    <asp:Button ID="btnCX" runat="server" OnClick="btnCX_Click" Text="查询" />
                                        
                                    <asp:SqlDataSource ID="SqlDataSourceCity" runat="server" ConnectionString="<%$ ConnectionStrings:BusConnectionString3 %>"
                                        SelectCommand="SELECT [终点站] FROM [Station]"></asp:SqlDataSource>
                                    &nbsp;</strong>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" rowspan="2" style="height: 120px">
                            </td>
                        </tr>
                        <tr>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 60px; text-align: center">
                    <strong>
                        <asp:HyperLink ID="hlinkadmin" runat="server" NavigateUrl="~/admin_login.aspx" Style="left: -26px;
                            position: relative; top: 0px">管理员  </asp:HyperLink>
                        <asp:HyperLink ID="hlinklx" runat="server" NavigateUrl="~/lxwm.aspx" Style="position: relative">联系我们</asp:HyperLink><br />
                        <span style="color: #ff0000">欢迎光临本站!</span></strong></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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