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:C开发者_JAVA技巧ustomValidator>
</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 :)
Display="Dynamic"
is probably set out of function by the "Required" you're showing as content of the Customvalidator.
精彩评论