disable textbox Required field validator control
<p>I want to disable the requiredfield validator control for the textbox based on some condition of a variable</p>

<pre><code>if(var==null)
{
    //Activate it
}
else
{
    //disable it
}
</code></pre>

<p>Can some one help me with the code</p>
