这是页面的代码
<%@ Page Language="C#" MasterPageFile="~/UserPage/Host.master" AutoEventWireup="true" CodeFile="query.aspx.cs" Inherits="User_query" Title="青岛公交查询" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"><link href="../CSS/query.css" rel="Stylesheet" type="text/css" /> <style type="text/css"> .style1 { height: 21px; } .style2 { height: 122px; } </style></asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="ContentPlaceHolder1">
<div id="container"> <div id="header"><center id="title"><br />青岛公交查询首页</center></div> <div id="mainContent"> <div id="sidebar"> <table> <tr id="tr1"><td id="td1">欢迎使用!</td></tr> <tr id="tr2"><td id="td2"><a href="../Default.aspx">首 页</a></td></tr> <tr id="tr2"><td id="td2"><a href="../User/query.aspx">公交查询</a></td></tr> <tr id="tr2"><td id="td2"><a href="../Info/info.aspx">最新动态</a></td></tr> <tr id="tr2"><td id="td2"><a href="mailto:123456@qq.com">联系我们</a></td></tr> <tr id="tr2"><td id="td2"><a href="../Login/login.aspx">管理员登录</a></td></tr> </table> </div> <div id="content"> <table class="style1"> <tr id="tr1"> <td class="style2"> </td> <td class="style2"> </td> <td class="style2"> </td> </tr> <tr id="tr2"> <td id="font"> 车次查询:</td> <td> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> </td> <td> <asp:Button ID="Button1" runat="server" Text="查询" onclick="Button1_Click" /> </td> </tr> <tr id="tr2"> <td id="font"> 站点查询:</td> <td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </td> <td> <asp:Button ID="Button2" runat="server" Text="查询" onclick="Button2_Click" /> </td> </tr> <tr id="tr2"> <td id="font"> 两站间查询:</td> <td> <asp:TextBox ID="TextBox2" runat="server" Width="64px"></asp:TextBox> ---- <asp:TextBox ID="TextBox3" runat="server" Width="64px"></asp:TextBox> </td> <td> <asp:Button ID="Button3" runat="server" Text="查询" /> </td> </tr> <tr id="tr1"> <td> </td> <td> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> </td> <td> </td> </tr> </table> </div> </div> <div id="footer"> <br /> <center><b>©2013</b> 版权所有</center> </div></div> </asp:Content>
<%@ Page Language="C#" MasterPageFile="~/UserPage/Host.master" AutoEventWireup="true" CodeFile="query.aspx.cs" Inherits="User_query" Title="青岛公交查询" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"><link href="../CSS/query.css" rel="Stylesheet" type="text/css" /> <style type="text/css"> .style1 { height: 21px; } .style2 { height: 122px; } </style></asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="ContentPlaceHolder1">
<div id="container"> <div id="header"><center id="title"><br />青岛公交查询首页</center></div> <div id="mainContent"> <div id="sidebar"> <table> <tr id="tr1"><td id="td1">欢迎使用!</td></tr> <tr id="tr2"><td id="td2"><a href="../Default.aspx">首 页</a></td></tr> <tr id="tr2"><td id="td2"><a href="../User/query.aspx">公交查询</a></td></tr> <tr id="tr2"><td id="td2"><a href="../Info/info.aspx">最新动态</a></td></tr> <tr id="tr2"><td id="td2"><a href="mailto:123456@qq.com">联系我们</a></td></tr> <tr id="tr2"><td id="td2"><a href="../Login/login.aspx">管理员登录</a></td></tr> </table> </div> <div id="content"> <table class="style1"> <tr id="tr1"> <td class="style2"> </td> <td class="style2"> </td> <td class="style2"> </td> </tr> <tr id="tr2"> <td id="font"> 车次查询:</td> <td> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> </td> <td> <asp:Button ID="Button1" runat="server" Text="查询" onclick="Button1_Click" /> </td> </tr> <tr id="tr2"> <td id="font"> 站点查询:</td> <td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </td> <td> <asp:Button ID="Button2" runat="server" Text="查询" onclick="Button2_Click" /> </td> </tr> <tr id="tr2"> <td id="font"> 两站间查询:</td> <td> <asp:TextBox ID="TextBox2" runat="server" Width="64px"></asp:TextBox> ---- <asp:TextBox ID="TextBox3" runat="server" Width="64px"></asp:TextBox> </td> <td> <asp:Button ID="Button3" runat="server" Text="查询" /> </td> </tr> <tr id="tr1"> <td> </td> <td> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> </td> <td> </td> </tr> </table> </div> </div> <div id="footer"> <br /> <center><b>©2013</b> 版权所有</center> </div></div> </asp:Content>