title: Check if textbox has same value to other textbox
body: <p>I want to check if there are similar value in my textboxes, I have 10 Textboxes, and on button click I want to validate if there are the same vales</p>
  
  <pre><code>for (int c = 1; c &lt;= 10; c++)
  {
      TextBox check_subjName = table_textboxes.FindControl("subject_name" + c.ToString()) as TextBox;
  
      for (int b = 1; b &lt;= 10; b++)
      {
          TextBox check_subjName2 = table_textboxes.FindControl("subject_name" + b.ToString()) as TextBox;
  
          if (c != b)
          {
              if (check_subjName.Text == check_subjName2.Text)
              {
                //there are similar values
              }
          }
      }
  }
  </code></pre>