title: How to automatically search with out clicking Button
body: <p>i have few text boxes and dropdown boxes in a search window,and when click search button it will display data on gridview based on value selection in controls.Now what i want is even without clicking on search button it will display data automatically in gridview based on control selection.How to achieve it.I am posting small snippet contains only text box.</p>
  
  <h3>UI</h3>
  
  <pre><code> &lt;div&gt;
       &lt;asp:TextBox ID="txtFirstName" runat="server"&gt;&lt;/asp:TextBox&gt;
   &lt;/div&gt;
   &lt;div&gt;
       &lt;asp:Button ID="Button1" runat="server" Text="Search" OnClick="Button1_Click" /&gt;
   &lt;/div&gt;
   &lt;div&gt;
       &lt;asp:GridView ID="grdresults" runat="server"&gt;&lt;/asp:GridView&gt;
   &lt;/div&gt;
  </code></pre>
  
  <h3>CS</h3>
  
  <pre><code> protected void Button1_Click(object sender, EventArgs e)
      {
          try
          {
              LoadData();
              BindGrid();
          }
          catch (Exception ex)
          {
              Response.Write(ex.Message);
          }
      }
  </code></pre>
  
  <p>The above  LoadData(); method will create the search criteria (<code>where</code> clause for oracle query) and will get data in to <code>datatable</code> which will be in <code>session</code>,Then BindGrid(); will assign data to <code>grdresult</code> gridview.Search is working fine by clicking the button,but i want it in an automated way</p>