温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net2.0车票管理系统
当前文件:
ChePiaoGuanLi/WebForm/Cxpj2.aspx[3K,2009-6-12 11:35:13],打开代码结构图
ChePiaoGuanLi/WebForm/Cxpj2.aspx[3K,2009-6-12 11:35:13],打开代码结构图1<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Cxpj2.aspx.cs" Inherits="WebForm_Cxpj2" Title="未售车票查询" %> 2
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 3
<table style="width: 543px; height: 276px"> 4
<tr> 5
<td style="width: 37px"> 6
</td> 7
<td colspan="2" rowspan="2"> 8
<table style="width: 497px; height: 139px"> 9
<tr> 10
<td rowspan="5" style="width: 101px"> 11
<asp:CheckBoxList ID="CheckBoxList1" runat="server" Height="106px"> 12
<asp:ListItem>车次编号</asp:ListItem> 13
<asp:ListItem>发车地点</asp:ListItem> 14
<asp:ListItem>目的地点</asp:ListItem> 15
<asp:ListItem>发车时间</asp:ListItem> 16
</asp:CheckBoxList></td> 17
<td style="height: 22px"> 18
<asp:TextBox ID="TextBox1" runat="server" Width="300px"></asp:TextBox></td> 19
</tr> 20
<tr> 21
<td style="height: 12px"> 22
<asp:TextBox ID="TextBox2" runat="server" Width="300px"></asp:TextBox></td> 23
</tr> 24
<tr> 25
<td style="height: 22px"> 26
<asp:TextBox ID="TextBox3" runat="server" Width="300px"></asp:TextBox></td> 27
</tr> 28
<tr> 29
<td style="height: 22px"> 30
<asp:TextBox ID="TextBox4" runat="server" Width="300px"></asp:TextBox></td> 31
</tr> 32
<tr> 33
<td> 34
</td> 35
</tr> 36
</table> 37
<table> 38
<tr> 39
<td style="width: 157px"> 40
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="确定" Width="87px" /></td> 41
<td style="width: 100px"> 42
</td> 43
</tr> 44
</table> 45
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 46
SelectCommand="SELECT [车次编号], [发车地点], [目的地点], [票价], [数量], [发车时间] FROM [unbuy]"></asp:SqlDataSource> 47
</td> 48
</tr> 49
<tr> 50
<td style="width: 37px"> 51
</td> 52
</tr> 53
<tr> 54
<td style="width: 37px; height: 182px"> 55
</td> 56
<td colspan="2" style="height: 182px"> 57
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" 58
DataKeyNames="车次编号" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None"> 59
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /> 60
<Columns> 61
<asp:BoundField DataField="车次编号" HeaderText="车次编号" ReadOnly="True" SortExpression="车次编号" /> 62
<asp:BoundField DataField="发车地点" HeaderText="发车地点" SortExpression="发车地点" /> 63
<asp:BoundField DataField="目的地点" HeaderText="目的地点" SortExpression="目的地点" /> 64
<asp:BoundField DataField="票价" HeaderText="票价" SortExpression="票价" /> 65
<asp:BoundField DataField="数量" HeaderText="数量" SortExpression="数量" /> 66
<asp:BoundField DataField="发车时间" HeaderText="发车时间" SortExpression="发车时间" /> 67
</Columns> 68
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" /> 69
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" /> 70
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" /> 71
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /> 72
<AlternatingRowStyle BackColor="White" /> 73
</asp:GridView> 74
</td> 75
</tr> 76
</table> 77
</asp:Content> 78
79





