开发者

Custom validator control occupying space even though display set to dynamic

开发者 https://www.devze.com 2023-03-25 02:44 出处:网络
Why is the custom validator control occupying height even though it is set to display equals 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: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.

0

精彩评论

暂无评论...
验证码 换一张
取 消