45935

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 :)

Answer1:

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

Recommend

  • Need Client Side Validation for TextBox if '' are used in textbox ASP.NET
  • Custom WCF client certificate over ssl validation
  • Is there a way to access the target bean from within a Bean Validation field-level ConstraintValidat
  • Remove “$” before ASP.Net RangeValidator script executes
  • How to set the scrollbar to move at last line in multiline textbox?
  • How to use compare validator to compare the data between two dropdownlists values?
  • How to change display text in item template based on eval in gridview?
  • Selenium - How to skip the record from the Set after the its first occurrence
  • How do i find all references to a user control
  • ASP.NET RegularExpressionValidator, validate on a non-match?
  • How to open html table in xls on click of a button
  • how to get username into sql trigger when multiple users signed on from asp membership
  • C# List of Panels
  • Outlines on links in IE9 remains when focus is changed
  • Display validation errors inside
  • UIAlertController button function not working
  • How to return DataSet (xsd) in WCF
  • Eliminate partial duplicate rows from result set
  • D3 get axis values on zoom event
  • Adjust width of select element according to selected option's width
  • Webgrid not refreshing after delete MVC
  • JSON response opens as a file, but I can't access it with JavaScript
  • How do I alternate colors in Flat List (React Native)
  • Listbox within Listbox and scrolling trouble in Windows Phone 7 Silverlight
  • Change multiple background-images with jQuery
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • Why doesn't :active or :focus work on text links in webkit? (safari & chrome)
  • How to check if every primary key value is being referenced as foreign key in another table
  • Can I have the cursor start on a particular column by default in jqgrid's edit mode?
  • Change an a tag attribute in JavaScript based on screen width
  • jquery mobile loadPage not working
  • Unanticipated behavior
  • How to delete a row from a dynamic generate table using jquery?
  • json Serialization in asp
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • How to stop GridView from loading again when I press back button?
  • apache spark aggregate function using min value