-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefault.aspx
More file actions
62 lines (59 loc) · 6.37 KB
/
Default.aspx
File metadata and controls
62 lines (59 loc) · 6.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<%@ Page Title="Главная" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ChessOpening.Default" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<div class="clear">
<p><asp:Label ID="labelLastName" runat="server" Text="Фамилия" Width="100px"></asp:Label>
<asp:TextBox ID="textBoxLastName" runat="server" Width="150px"></asp:TextBox> <asp:Label ID="labelRank" runat="server" Text="Разряд" Width="80px"></asp:Label>
<asp:DropDownList ID="ListRank" runat="server" Width="160px" DataSourceID="RankData" DataTextField="TitleRank" DataValueField="TitleRank">
</asp:DropDownList>
</p>
<p><asp:Label ID="labelFirstName" runat="server" Text="Имя" Width="100px" Height="26px"></asp:Label>
<asp:TextBox ID="TextBoxFirstName" runat="server" Width="150px"></asp:TextBox> <asp:Label ID="labelRating" runat="server" Text="Рейтинг" Width="80px"></asp:Label>
<asp:TextBox ID="TextBoxRating" runat="server" Width="150px"></asp:TextBox></p>
<p><asp:Label ID="labelCountry" runat="server" Text="Страна" Width="100px"></asp:Label>
<asp:TextBox ID="TextBoxCountry" runat="server" Width="150px"></asp:TextBox> <asp:Label ID="labelGames" runat="server" Text="Игр" Width="80px"></asp:Label>
<asp:TextBox ID="TextBoxGames" runat="server" Width="150px"></asp:TextBox>
</p>
<p>
<asp:Label ID="LabelGender" runat="server" Text="Пол" Width="100px"></asp:Label>
<asp:DropDownList ID="ListGender" runat="server" style="margin-bottom: 0px">
<asp:ListItem>M</asp:ListItem>
<asp:ListItem>Ж</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="labelMassage" runat="server"></asp:Label>
</p>
<p>
<asp:Button ID="buttonAdd" runat="server" Text="Добавить" OnClick="buttonAdd_Click" />
<asp:Button ID="buttonShow" runat="server" Text="Показать данные" OnClick="buttonShow_Click" />
</p>
<div>
<asp:GridView ID="GridViewPlayers" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" Width="870px" HorizontalAlign="Center" PageSize="20">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="LastName" HeaderText="LastName" ReadOnly="True" SortExpression="LastName" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName" ReadOnly="True" SortExpression="FirstName" />
<asp:BoundField DataField="Country" HeaderText="Country" ReadOnly="True" SortExpression="Country" />
<asp:BoundField DataField="Rating" HeaderText="Rating" ReadOnly="True" SortExpression="Rating" />
<asp:BoundField DataField="RankPlayer" HeaderText="RankPlayer" ReadOnly="True" SortExpression="RankPlayer" />
<asp:BoundField DataField="NumberGames" HeaderText="NumberGames" ReadOnly="True" SortExpression="NumberGames" />
</Columns>
<EditRowStyle BackColor="#7C6F57" />
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#E3EAEB" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F8FAFA" />
<SortedAscendingHeaderStyle BackColor="#246B61" />
<SortedDescendingCellStyle BackColor="#D4DFE1" />
<SortedDescendingHeaderStyle BackColor="#15524A" />
</asp:GridView>
<asp:LinqDataSource ID="PlayerData" runat="server" ContextTypeName="Chess.ChessOpeningEntities" EntityTypeName="" Select="new (LastName, FirstName, Country, Rating, RankPlayer, NumberGames)" TableName="Players">
</asp:LinqDataSource>
<asp:LinqDataSource ID="RankData" runat="server" ContextTypeName="Chess.ChessOpeningEntities" EntityTypeName="" Select="new (TitleRank)" TableName="RankPlayers">
</asp:LinqDataSource>
</div>
</div>
</asp:Content>