Validate dropdown from custom control in page
<p>I  have a custom control included in a form that includes a dropdown list. The form has a number of other required fields, so i was wondering how to validate this dropdown.</p>

<pre><code>&lt;gaia:TextBox ID="TitleTextBox" runat="server"/&gt;
&lt;gaia:RequiredFieldValidator runat="server" ControlToValidate="TitleTextBox"
                    ErrorMessage="Please fill in the press release title" Text="*" Display="None" ValidationGroup="save" /&gt;

&lt;CN:ProductCategoryDropDown runat="server" ID="ProductCategoryDropDown" /&gt;
&lt;gaia:CustomValidator runat="server" ID="ProductCategoryValidator" OnServerValidate="ProductCategory_Validate" ValidationGroup="save" 
                    Display="None" Text="*" ErrorMessage="Please select a category"  /&gt;
</code></pre>

<p>the code behind looks like this</p>

<pre><code>protected void ProductCategory_Validate(object source, ServerValidateEventArgs args)
{
    args.IsValid = (ProductCategoryDropDown.SelectedValue&gt;0);
}
</code></pre>

<p>On the customvalidator above, I purposely left out the 'ControlToValidate' because it throws an error.</p>

<p>Please help.</p>
