title: How to Autofil the TextBox with Current date
body: <p>Hello dear All hope you all are fine and doing well, I am new on .net development i am creating a project which will get the information about the user daily base but the problem is that i want to autofill the date textbox with current date,
  Here is my Code behind page_load</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Data;
  using System.Data.SqlClient;
  using System.Drawing;
  
  namespace StackOver
  {
   public partial class _Default : System.Web.UI.Page
   {
    protected void Page_Load(object sender,EventArgs e)
    {
     TextBoxStartDate.Text = DateTime.Now.ToString();
  
     if (!Page.IsPostBack)
     {
      LoadOptionsCardCodeTable();
      LoadOptionsStageSlpNameTable();
     }
    }
  
    protected void TextBoxStartDate_TextChanged(object sender, EventArgs e)
    {
     TextBoxStartDate.Text = DateTime.Now.ToString();
    }
   }
  }
  </code></pre>
  
  <p>And also here is my aspx.cs code for that textbox</p>
  
  <pre><code>&lt;asp:TextBox ID="TextBoxStartDate" runat="server" ontextchanged="TextBoxStartDate_TextChanged" Width="150px" Height="16px" &gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>Thanks in Advance its not showing error but current date not showing
  kindly help</p>