<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TextBoxesWithAJAX.aspx.vb" Inherits="TextBoxesWithAJAX" %>

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>Kontrolki TextBox razem z technologią Ajax</title>

   <script type="text/javascript">
    
      function pageLoad() {
      }
    
   </script>
   <style type="text/css">
      .watermark 
      {
         color : Gray;
         background-color : #dddddd;
         font-size: smaller;
         font-style:italic;
      }
   </style>
</head>
<body>
   <form id="form1" runat="server">
   <div>
      <asp:ScriptManager ID="ScriptManager1" runat="server" />
      <asp:TextBox ID="txtInput" runat="server" AutoPostBack="true" OnTextChanged="txtInput_TextChanged"></asp:TextBox>
      <asp:TextBox ID="txtEcho" runat="server" BackColor="lightgray" ReadOnly="true"></asp:TextBox>
      <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtInput" WatermarkText="Podaj datę" WatermarkCssClass="watermark">
      </cc1:TextBoxWatermarkExtender>
      <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtInput" />
      <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server"
            TargetControlID="txtInput"
            Mask="99/99/9999" MaskType="Date" ErrorTooltipEnabled="True" CultureName="en-gb" />
      <cc1:MaskedEditValidator ID="MaskedEditValidator5" runat="server" ControlExtender="MaskedEditExtender1" ControlToValidate="txtInput"
            EmptyValueMessage="Podanie daty jest wymagane" InvalidValueMessage="Podana data jest nieprawidłowa" Display="Dynamic" TooltipMessage="Podaj datę" /> 
   </div>
   </form>
</body>
</html>
