asp.net required field validation called on every button action
<p>I wrote a simple asp.net code with the asp.net required validator control, the problem is that I only have one submit button called GO, and a dropdownlist that looks for the selection :
clear, submit, cancel.</p>

<p>No matter what option is selected, the required field validation is being fired. </p>

<p>Is there a way to code the page so only when the selected value is Submit it validates?</p>

<pre><code>&lt;asp:TextBox runat="server" id="txtName" /&gt;
    &lt;asp:RequiredFieldValidator runat="server" id="reqName" controltovalidate="txtName" errormessage="Please enter your name!" /&gt;
    &lt;br /&gt;&lt;br /&gt;


    &lt;asp:DropDownList ID="dpAction" runat="server"&gt;
                 &lt;asp:ListItem&gt;Submit&lt;/asp:ListItem&gt;
                 &lt;asp:ListItem Value="Reset"&gt;Reset&lt;/asp:ListItem&gt;
                 &lt;asp:ListItem&gt;Cancel&lt;/asp:ListItem&gt;
             &lt;/asp:DropDownList&gt;
    &amp;nbsp;
             &lt;asp:Button ID="btnAction" runat="server" onclick="btnAction_Click" Text="Go" 
                 Width="40px" /&gt;
</code></pre>
