Jaggu
Jaggu

Reputation: 6428

Custom validator control occupying space even though display set to dynamic

Why is the custom validator control occupying height even though it is set to display equals dynamic:

<tr>
    <td style="min-height: 0px;">
        <asp:CustomValidator ID="cvFiscalFromyear" runat="server" Style="width: 160px;" ErrorMessage="From fiscal year required" ForeColor="Green" Display="Dynamic" SetFocusOnError="true" ClientValidationFunction="fncFromFiscalYear">Required</asp:CustomValidator>
    </td>
    <td style="min-height: 0px;">
        <asp:CustomValidator ID="cvFiscalToyear" Style="width: 160px;" runat="server" ErrorMessage="To fiscal year required" ForeColor="Green" Display="Dynamic" ClientValidationFunction="fncToFiscalYear">Required</asp:CustomValidator>
    </td>
</tr>

It is inside table tag. Thanks in advance :)

Upvotes: 2

Views: 1676

Answers (1)

Semyazas
Semyazas

Reputation: 2101

Display="Dynamic" is probably set out of function by the "Required" you're showing as content of the Customvalidator.

Upvotes: 3

Related Questions