title: I have Created a Search Page and when the Data is Binding I am Getting Stack OverFlow Error..I dont know Why it is appearing
body: <pre><code>private void BindGrid()
  {
      String mainconn = ConfigurationManager.ConnectionStrings["SchoolConnectionString"].ConnectionString;
      SqlConnection sqlconn = new SqlConnection(mainconn);
  
      SqlCommand sqlcomm = new SqlCommand("UspSearch", sqlconn);
  
      sqlcomm.CommandType = CommandType.StoredProcedure;
  
      if (!string.IsNullOrEmpty(txtApplicationNumber.Text.Trim()))
          sqlcomm.Parameters.AddWithValue("@ApplicationNumber", txtApplicationNumber.Text);
  
      DataTable dt = new DataTable();
  
      SqlDataAdapter da = new SqlDataAdapter(sqlcomm);
  
      DataSet ds = new DataSet();
  
      sqlconn.Open();
  
      da.Fill(dt);
  
      sqlconn.Close();
  
      gvSearch.DataSource = dt;
  
      BindGrid();
  }
  </code></pre>