Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

Plcaeholder removing whitespace between controls

$
0
0
I have a couple of placeholders in a form to hide / show fields depending on a boolean. My form controls are all laid out like the following, each contol is on it's own line and when output as html (afaik) should still be on it's own line.
 
<p><asp:labelID="lblSchool"AssociatedControlID="School"runat="server">School(ifapplicable):</asp:label><asp:TextBoxid="School"runat="server"MaxLength="50"/><asp:RequiredFieldValidatorID="reqSchool"runat="server"ControlToValidate="School"Display="Dynamic"CssClass="val-error"Text="* required"SetFocusOnError="true"/><bcg:NoPunctuationValidatorID="validSchool"runat="server"ControlToValidate="School"Display="Dynamic"MaxLength="101"CssClass="val-error"Text="* invalid"SetFocusOnError="true"/></p>
 
I have found however when the controls in the placeholder are rendered they all squashed up with no whitespace in betweeen them. It seems the placeholder is removing the whitespace.
 
Is there any way to stop this.

Viewing all articles
Browse latest Browse all 3938

Latest Images

Trending Articles



Latest Images