<%@ Page Language="C#" AutoEventWireup="true" CodeFile="profil.aspx.cs" MasterPageFile="MainMasterPage.master" Inherits="profil" %>

<asp:Content ID="profil_obsah" ContentPlaceHolderID="obsah" runat="server">
<div>
<h3>Uprav profil pre:</h3>
    <asp:Label ID="user_label" runat="server" Text="Lukas Dojcak"></asp:Label>
</div>
<div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetUser"
        TypeName="System.Web.Security.Membership">
        <SelectParameters>
        <asp:ControlParameter ControlID="user_label" DefaultValue=""
            Name="username" PropertyName="Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px"
        DataSourceID="ObjectDataSource1" AutoGenerateRows="false" AutoGenerateEditButton="true">
        <Fields>
            <asp:BoundField DataField="Email" HeaderText="E-mail" />
            <asp:BoundField DataField="PasswordQuestion" HeaderText="Otazka" />
        </Fields>
    </asp:DetailsView>
    <table id="profil_table">
            <tr>
                <td>
                    <asp:Label ID="profil_name_label" runat="server" Text="meno:"></asp:Label></td>
                <td>
                    <asp:TextBox ID="profil_name_input" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="profil_password_label" runat="server" Text="heslo:"></asp:Label></td>
                <td>
                    <asp:TextBox ID="profil_password_input" runat="server" TextMode="Password"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="profil_password_cn_label" runat="server" Text="potvrd heslo:"></asp:Label></td>
                <td>
                    <asp:TextBox ID="profil_password_cn_input" runat="server" TextMode="Password"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="profil_email_label" runat="server" Text="e-mail:"></asp:Label></td>
                <td>
                    <asp:TextBox ID="profil_email_input" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="profil_question_label" runat="server" Text="otazka:"></asp:Label></td>
                <td>
                    <asp:TextBox ID="profil_question_input" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="profil_answer_label" runat="server" Text="odpoved:"></asp:Label></td>
                <td>
                    <asp:TextBox ID="profil_answer_input" runat="server"></asp:TextBox></td>
            </tr>     
    </table>
</div>
</asp:Content>
