<%@ Page Language="VB" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Kontrolka ValidatorCalloutExtender</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" 
            TargetControlID="RegularExpressionValidator1">
        </asp:ValidatorCalloutExtender>        
        Adres e-mail:&nbsp;
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
         runat="server" 
         ErrorMessage="Musisz wpisać prawidłowy adres e-mail" Display="None" 
         ControlToValidate="TextBox1" 
         ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
        </asp:RegularExpressionValidator><br />
        <asp:Button ID="Button1" runat="server" Text="Zatwierd" />
    </div>
    </form>
</body>
</html>
