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

1<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PredeterminedTicket.aspx.cs" Inherits="PredeterminedTicket" 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: 185px; 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: 185px; 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: 185px; 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="180px"> 35
</asp:DropDownList></td> 36
</tr> 37
38
39
40
<tr> 41
<td align="left" colspan="3" rowspan="2" style="background-position: center center; 42
background-image: url(image/bar.jpg); background-repeat: repeat-x; height: 30px"> 43
<asp:LinkButton ID="Linkbuy" runat="server" BackColor="MediumTurquoise" ForeColor="Black" 44
Height="18px" Width="91px" OnClick="Linkbuy_Click"> 预 览 </asp:LinkButton> 45
46
</td> 47
</tr> 48
<tr> 49
</tr> 50
<tr> 51
<td align="left" colspan="3" style="height: 26px"> 52
以下是你购买的车票信息</td> 53
</tr> 54
<tr> 55
<td colspan="3" rowspan="2"> 56
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%"> 57
<tr> 58
<td align="left" style="width: 130px; height: 30px"> 59
车次:</td> 60
<td align="left" colspan="2" style="height: 30px"> 61
<asp:Label ID="Label1" runat="server" Width="165px"></asp:Label></td> 62
</tr> 63
<tr> 64
<td align="left" style="width: 130px; height: 31px"> 65
种类:</td> 66
<td align="left" colspan="2" style="height: 31px"> 67
<asp:Label ID="Label2" runat="server" Width="166px"></asp:Label></td> 68
</tr> 69
<tr> 70
<td align="left" style="width: 130px; height: 30px"> 71
开车时间:</td> 72
<td align="left" colspan="2" style="height: 30px"> 73
<asp:Label ID="Label3" runat="server" Width="165px"></asp:Label></td> 74
</tr> <tr> 75
<td align="left" style="width: 130px; height: 30px"> 76
车票价格:</td> 77
<td align="left" colspan="2" style="height: 30px"> 78
<asp:Label ID="Label4" runat="server" Width="165px"></asp:Label></td> 79
</tr> 80
81
<tr> 82
<td align="left" colspan="3" style="height: 31px"> 83
<asp:LinkButton ID="LinkButton1" runat="server" BackColor="MediumTurquoise" ForeColor="Black" 84
Width="80px" OnClick="LinkButton1_Click"> 预 定 </asp:LinkButton></td> 85
</tr> 86
</table> 87
88
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 89
SelectCommand="SELECT * FROM [Car] WHERE ([CType] = @CType) ORDER BY [Cid]"> 90
<SelectParameters> 91
<asp:Parameter DefaultValue="否" Name="CType" Type="String" /> 92
</SelectParameters> 93
</asp:SqlDataSource> 94
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 95
SelectCommand="SELECT * FROM [Ticket]"></asp:SqlDataSource> 96
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 97
SelectCommand="SELECT * FROM [Ticket]"></asp:SqlDataSource> 98
</td> 99
</tr> 100
<tr> 101
</tr> 102
</table> 103
</asp:Content> 104
105




