温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:在线订票系统源码(毕业设计)
当前文件路径:TicketOnline/SealTicket.aspx

1<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SealTicket.aspx.cs" Inherits="SealTicket" Title="Untitled Page" %> 2
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 3
<table border="0" cellpadding="0" cellspacing="0" style="border-right: #3399ff 0.1mm solid; 4
border-top: #3399ff 0.1mm solid; ; width: 100%; 5
border-bottom: #3399ff 0.1mm solid"> 6
<tr> 7
<td align="center" colspan="3" style="background-position: center center; font-size: large; color: #000033; background-repeat: repeat-x; 8
height: 32px; background-color: #3399ff;"> 9
前台车票预定系统</td> 10
</tr> 11
<tr> 12
<td style="width: 184px; height: 23px"> 13
选择乘坐车次:</td> 14
<td align="left" colspan="2" style="width: 670px; height: 23px"> 15
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" 16
DataTextField="Carname" DataValueField="Carname" Width="180px"> 17
</asp:DropDownList> 18
</td> 19
</tr> 20
<tr> 21
<td style="width: 184px; height: 29px"> 22
选择车票种类:</td> 23
<td align="left" colspan="2" style="width: 670px; height: 29px"> 24
<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource3" 25
DataTextField="Tname" DataValueField="Tmoney" Width="180px"> 26
</asp:DropDownList> 27
</td> 28
</tr> 29
<tr> 30
<td style="width: 184px; height: 29px"> 31
选择开车时间:</td> 32
<td align="left" colspan="2" style="width: 670px; height: 29px"> 33
<asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="SqlDataSource2" 34
DataTextField="Ttime" DataValueField="Ttime" Width="174px"> 35
</asp:DropDownList></td> 36
</tr> 37
<tr> 38
<td align="left" colspan="3" rowspan="2" style="background-position: center center; 39
background-image: url(image/bar.jpg); background-repeat: repeat-x; height: 30px"> 40
<asp:LinkButton ID="Linkbuy" runat="server" BackColor="MediumTurquoise" ForeColor="Black" 41
Height="18px" OnClick="Linkbuy_Click" Width="91px" BorderStyle="None"> 预 览 </asp:LinkButton> 42
43
</td> 44
</tr> 45
<tr> 46
</tr> 47
<tr> 48
<td align="left" colspan="3" style="height: 26px"> 49
以下是你购买的车票信息</td> 50
</tr> 51
<tr> 52
<td colspan="3" rowspan="2"> 53
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%"> 54
<tr> 55
<td align="left" style="width: 133px; height: 30px"> 56
车次:</td> 57
<td align="left" colspan="2" style="height: 30px"> 58
<asp:Label ID="Label1" runat="server" Width="165px"></asp:Label></td> 59
</tr> 60
<tr> 61
<td align="left" style="width: 133px; height: 31px"> 62
种类:</td> 63
<td align="left" colspan="2" style="height: 31px"> 64
<asp:Label ID="Label2" runat="server" Width="166px"></asp:Label></td> 65
</tr> 66
<tr> 67
<td align="left" style="width: 133px; height: 30px"> 68
开车时间:</td> 69
<td align="left" colspan="2" style="height: 30px"> 70
<asp:Label ID="Label3" runat="server" Width="165px"></asp:Label></td> 71
</tr> 72
<tr> 73
<td align="left" style="width: 133px; height: 30px"> 74
车票价格:</td> 75
<td align="left" colspan="2" style="height: 30px"> 76
<asp:Label ID="Label4" runat="server" Width="165px"></asp:Label></td> 77
</tr> 78
<tr> 79
<td align="left" colspan="3" style="height: 31px"> 80
<asp:LinkButton ID="LinkButton1" runat="server" BackColor="MediumTurquoise" ForeColor="Black" 81
OnClick="LinkButton1_Click" Width="80px" BorderStyle="None"> 购 买 </asp:LinkButton></td> 82
</tr> 83
</table> 84
</td> 85
</tr> 86
<tr> 87
</tr> 88
</table> 89
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 90
SelectCommand="SELECT * FROM [Car] WHERE ([CType] = @CType) ORDER BY [Cid]"> 91
<SelectParameters> 92
<asp:Parameter DefaultValue="否" Name="CType" Type="String" /> 93
</SelectParameters> 94
</asp:SqlDataSource> 95
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 96
SelectCommand="SELECT * FROM [Ticket]"></asp:SqlDataSource> 97
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 98
SelectCommand="SELECT * FROM [Ticket]"></asp:SqlDataSource> 99
</asp:Content> 100
101




