title: TextChanged event not firing for text box, when the text is changed from javascript
body: <p>I have a text box which i m filling of date from the calendar extender and the code is as below:-</p>
  
  <pre><code>&lt;label for="input-one" class="float"&gt;&lt;strong&gt;Date&lt;/strong&gt;&lt;/label&gt;&lt;br /&gt;                  
  &lt;asp:TextBox ID="txtDate" runat="server" CssClass="inp-text" Enabled="false" AutoPostBack="true"
               Width="300px" ontextchanged="txtDate_TextChanged"&gt;&lt;/asp:TextBox&gt;
  &lt;asp:ImageButton ID="btnDate2" runat="server" AlternateText="cal2" 
                   ImageUrl="~/App_Themes/Images/icon_calendar.jpg" style="margin-top:auto;" 
                   CausesValidation="false" onclick="btnDate2_Click" /&gt;
  &lt;ajaxToolkit:CalendarExtender ID="calExtender2" runat="server" 
                                Format="dddd, MMMM dd, yyyy" 
                                OnClientDateSelectionChanged="CheckDateEalier" 
                                PopupButtonID="btnDate2" TargetControlID="txtDate" /&gt;
  &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                              ControlToValidate="txtDate" ErrorMessage="Select a Date" Font-Bold="True" 
                              Font-Size="X-Small" ForeColor="Red"&gt;&lt;/asp:RequiredFieldValidator&gt;&lt;br /&gt;
  </code></pre>
  
  <p>Javascript code is :- </p>
  
  <pre><code>function CheckDateEalier(sender, args) 
  {
      sender._textbox.set_Value(sender._selectedDate.format(sender._format))
  }
  </code></pre>
  
  <p>My requirement is that as the date is entered in to the textbox, I want to call this method:</p>
  
  <pre><code>public void TimeSpentDisplay()
  {
          string date = txtDate.Text.ToString();
          DateTime dateparsed = DateTime.ParseExact(date, "dddd, MMMM dd, yyyy", null);
          DateTime currentDate = System.DateTime.Now;
          if (dateparsed.Date &gt; currentDate.Date)
          {
              divtimeSpent.Visible = true;
          }
          if (dateparsed.Date &lt; currentDate.Date)
          {
              divtimeSpent.Visible = true;
          }
          if (dateparsed.Date == currentDate.Date)
          {
              divtimeSpent.Visible = false;
          }
  }
  </code></pre>
  
  <p>Please help me that how i achieve this as i m calling this method inside <code>txtDate_TextChanged</code> method but the event is not firing as the text is changed inside the textbox.</p>
  
  <p>Please suggest how I can achieve this or give me an alternate idea to fulfill my requirement.</p>