<%@ Page Language="C#" MasterPageFile="~/ListaMailowa_Xml/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    Wpisz adres e-mail:
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>&nbsp;<asp:Button ID="Button1"
        runat="server" OnClick="Button1_Click" Text="Dodaj do listy" />&nbsp;<asp:Button
            ID="Button2" runat="server" Text="Usuń z listy" OnClick="Button2_Click" /><br />
    <br />
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1"
        ErrorMessage="Niepoprawny adres e-mail!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><br />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
        ErrorMessage="Brak adresu e-mail!"></asp:RequiredFieldValidator><br />
    <br />
    <asp:Label ID="Label1" runat="server" Text="Komunikaty:<BR>"></asp:Label><br />
    <br />
    <a href="Lista.aspx">Lista adresów</a><br />
    <br />
    <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/ListaMailowa_Xml/App_Data/ListaMailowa.xml"
        XPath="~/ListaMailowa_Xml/ListaAdresow/email"></asp:XmlDataSource>
</asp:Content>

