title: Display Current Date Time in TextBox using MaskedEditExtender in asp.net
body: <p>I try to display current DateTime in txtDateTime
  How to display current datetime or custom date time in the textbox using Maked Edit Extender Ajax tool kit in asp.net</p>
  
  <pre><code>&lt;asp:TextBox runat="server" ID="txtDateTime" ValidationGroup="ModalPopup"&gt;&lt;/asp:TextBox&gt;
                                              &lt;asp:CalendarExtender runat="server"
                                                  TargetControlID="txtDateTime"
                                                  PopupPosition="TopRight" 
                                                  Format="dd/MM/yyyy HH:mm"&gt;
                                              &lt;/asp:CalendarExtender&gt;
                                              &lt;asp:MaskedEditExtender runat="server"
                                                  ID="meeDateTime"
                                                  TargetControlID="txtDateTime"
                                                  Mask="99/99/9999 99:99"
                                                  MaskType="DateTime"
                                                  UserDateFormat= "DayMonthYear"
                                                  UserTimeFormat="TwentyFourHour"
                                                  CultureDateFormat="DMY"
                                                  CultureDatePlaceholder="/"           CultureTimePlaceholder=":"&gt;
                                              &lt;/asp:MaskedEditExtender&gt;
  
  protected void Page_Load(object sender, EventArgs e)
          {
  //txtDateTime.Text = DateTime.Now.ToString("dd/MM/yyyy H:mm);
  //txtDateTime.Text = DateTime.Now.ToString("dd/MM/yyyy HH:mm);
  txtDateTime.Text = DateTime.Now.ToString();
  }
  </code></pre>
  
  <p>code Behind</p>