title: Comparing two textbox values in vb.net
body: <p>I am usingh VB.net, I have two textboxes please see below:</p>
  
  <pre><code>&lt;tr id="trCheckedBy2" runat="server"&gt;
      &lt;td&gt;
      Application Checked by 1:
      &lt;/td&gt;
      &lt;td&gt;
      &lt;asp:TextBox ID="CheckedBy1TextBox" runat="server" Text='&lt;%# Bind("CheckedBy1") %&gt;' /&gt;
      &lt;/td&gt;
      &lt;td&gt;
      Application Checked by 2:
      &lt;/td&gt;
      &lt;td &gt;
      &lt;asp:TextBox ID="CheckedBy2TextBox"  runat="server" Text='&lt;%# Bind("CheckedBy2") %&gt;' /&gt;
      &lt;/td&gt;                                
  &lt;/tr&gt;
  </code></pre>
  
  <p>Now I want to give error message <strong>"Username can not be same"</strong> when <strong>CheckedBy2TextBox</strong> text is same as <strong>CheckedBy1TextBox</strong>. It would be good if we can use .net validator.</p>
  
  <p>Please suggest!</p>
  
  <p>Thanks.</p>
  
  <p>Best Regards,
  MS</p>