Разработка WEB приложений в ASP,NET, страница 3

<asp:BoundField DataField="своб мест" HeaderText="своб мест" SortExpression="своб мест" />

<asp:CommandField SelectText="Выбрать сеанс" ShowSelectButton="True" />

</Columns>

<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />

<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />

<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />

<AlternatingRowStyle BackColor="White" />

</asp:GridView>

</center>

<center>

&nbsp;</center>

<center>

&nbsp;</center>

<center>

&nbsp;</center>

<asp:Label ID="Label2" runat="server" BackColor="Gainsboro" Font-Size="XX-Large"

ForeColor="Black" Text="Приобретение билета" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Visible="False" BorderColor="Maroon" BorderWidth="2px"></asp:Label>&nbsp;<br />

<br />

<asp:Label ID="Label1" runat="server" BackColor="#FFFF80" BorderColor="OrangeRed"

BorderWidth="1px" Text="Выберите одно из свободных мест в зале" Visible="False"></asp:Label><br />

<asp:Label ID="Label3" runat="server" Font-Italic="True" Font-Overline="False" Font-Strikeout="False"

Font-Underline="True" Text="Ряд:" Visible="False"></asp:Label>

<asp:Label ID="RiadLabel" runat="server" Visible="False"></asp:Label>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

<asp:Label ID="Label4" runat="server" Font-Italic="True" Font-Underline="True" Text="Место:" Visible="False"></asp:Label>

<asp:Label ID="MestoLabel" runat="server" Visible="False"></asp:Label>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

<asp:Label ID="Label5" runat="server" Font-Italic="True" Font-Underline="True" Text="Стоимость:" Visible="False"></asp:Label>

<asp:Label ID="CenaLabel" runat="server" Visible="False"></asp:Label><br />

<br />

<asp:Button ID="BuyButton" runat="server" OnClick="Button1_Click" Text="Приобрести билет" Height="25px" Visible="False" Width="289px" BorderStyle="Outset" BorderWidth="1px" Font-Bold="True" Font-Names="Tahoma" Font-Size="Medium" ForeColor="Black" /><br />

<br />

</form>

</body>

</html>

Реализация бронирования билетов

using System;

using System.Data;

using System.Data.SqlClient;

using System.Configuration;

using System.Collections;

using System.Collections.Generic;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

public partial class index2 : System.Web.UI.Page

{

private List<Button> buttons = new List<Button>();

private static string CONTROLS_STORE = "ControlsStore";

public static bool FirstLoad;

public static class Global

{