title: How to use validation summary for particular button in asp.net?
body: <p>I have a page with controls as shown below,</p>
  
  <pre><code>&lt;asp:TextBox id="txt_name" runat="server"/&gt;
  &lt;asp:RequiredFieldValidator
   ControlToValidate="txt_name"
   ErrorMessage="Name"
   Text="*"
   runat="server"/&gt;    
  &lt;asp:Button id="b1" Text="Submit" runat="server"/&gt;
  &lt;asp:Button id="b2" Text="Clear" runat="server"/&gt;
  &lt;asp:ValidationSummary
   HeaderText="You must enter a value in the following fields:"
   DisplayMode="BulletList"
   EnableClientScript="true"
   runat="server"/&gt;
  </code></pre>
  
  <p>How can I use validation summary only for Submit button?</p>