Issue with radio buttons while firing Validations
<p>Hi all i have my form with some controls as follows</p>

<p><code>2 Radio buttons 1 Text Box, 1 Required field validator and a button</code></p>

<p>I wrote my sample code in such a way that if one radio button is selected i will enable or disable the text box that i will have. </p>

<p>I am having a required field validator which was set for text box available. Now what i need is when  the control was disabled i don't want to perform the validation for this is it possible to do </p>

<p>Sample code</p>

<pre><code>protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
    TextBox1.Enabled = true;
}
protected void RadioButton2_CheckedChanged(object sender, EventArgs e)
{
    TextBox1.Enabled = false;
}
</code></pre>

<p>My design</p>

<pre><code>&lt;form id="form1" runat="server"&gt;
&lt;div&gt;
    &lt;asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True" GroupName="g"
        OnCheckedChanged="RadioButton1_CheckedChanged" ValidationGroup="g1" /&gt;
    &lt;asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True" GroupName="g"
        OnCheckedChanged="RadioButton2_CheckedChanged" /&gt;
    &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
    &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
        ErrorMessage="RequiredFieldValidator" ValidationGroup="g1"&gt;&lt;/asp:RequiredFieldValidator&gt;
    &lt;asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="g1" /&gt;&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>Validation should apply only when the control was enabled</p>
