<%@ Page Title="Audiotéka - Hudobné žánre" Language="C#" MasterPageFile="~/MasterDesign.Master"
    AutoEventWireup="true" CodeBehind="GenresPage.aspx.cs" Inherits="AUDIOTEKA.GenresPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPlaceHolder" runat="server">
    <h2>
        Hudobné žánre v Audiotéke
    </h2>
    <asp:GridView OnPageIndexChanging="GenresGridView_PageChanged" AllowPaging="true"
        PageSize="10" ID="GenresGridView" DataKeyNames="GenreId" runat="server" AutoGenerateColumns="false">
        <RowStyle CssClass="rowA" />
        <AlternatingRowStyle CssClass="rowB" />
        <HeaderStyle CssClass="rowH" BorderColor="Black" ForeColor="White" Font-Underline="false" />
        <Columns>
            <%--<asp:BoundField ItemStyle-BorderWidth="0" ItemStyle-BorderStyle="None" SortExpression="GenreName"
                HeaderText="Hudobný žáner" DataField="GenreName" ItemStyle-Width="20em" />
           --%>
            <asp:HyperLinkField ItemStyle-BorderWidth="0" ItemStyle-BorderStyle="None" HeaderText="Hudobný žáner"
                DataNavigateUrlFields="GenreName" DataNavigateUrlFormatString="~/AlbumPage.aspx?genre={0}"
                DataTextField="GenreName" ItemStyle-Width="20em" />
        </Columns>
        <PagerStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="white" />
    </asp:GridView>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftPlaceHolder" runat="server">
</asp:Content>
