How to pass TextBox value to DynamicPopulateExtender query?
<p>Hi I am trying to do DynamicPopulate on DropDownList2 when the value of textbox2 changes, how can I pass the value to TextBox2 to the sql query of DynamicPopulate.  </p>

<pre><code>&lt;asp:DropDownList ID="DropDownList2" runat="server" 
          DataSourceID="SqlDataSource1" 
          onselectedindexchanged="DropDownList2_SelectedIndexChanged"&gt;
      &lt;/asp:DropDownList&gt;
      &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" 
          ConnectionString="&lt;%$ ConnectionStrings:MYDB %&gt;" 
          SelectCommand="SELECT Time FROM Tour WHERE (Date = TextBox2 )"&gt;
      &lt;/asp:SqlDataSource&gt;
      &lt;asp:DynamicPopulateExtender ID="DropDownList2_DynamicPopulateExtender" 
          runat="server" Enabled="True" PopulateTriggerControlID="" 
          TargetControlID="DropDownList2"&gt;
      &lt;/asp:DynamicPopulateExtender&gt;
</code></pre>
