<%@ Page Language="C#" MasterPageFile="~/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" Text="Dodaj do listy" OnClick="Button1_Click" />&nbsp;<asp:Button
            ID="Button2" runat="server" OnClick="Button2_Click" Text="Usuń adres z listy" /><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:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ListaMailowaConnectionString %>"
        SelectCommand="SELECT [Email] FROM [ListaAdresow]"></asp:SqlDataSource>
</asp:Content>

