ASP .NET - RequiredFieldValidator creates space after textbox
asp.net, c#
Solution
Set this property: `Display="Dynamic"`.
Problem
I have a DetailsView with a number of textboxes setup with RequiredFieldValidators. The code for both is: ``` <InsertItemTemplate> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("date_time") %>'></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="TextBox1" ErrorMessage="Please update date_time." ValidationGroup="InsertDetailsView1">*</asp:RequiredFieldValidator> </InsertItemTemplate> ``` The problem is that the validation control is now creating a space (ie ) between the textbox and the one below it. How do I get rid of the space? Is it a CSS thing?