Why does validator insert  ?

  • Thread starter Thread starter Darrel
  • Start date Start date
D

Darrel

I have a few required field validators like this:

<asp:RequiredFieldValidator id=RequiredFieldValidator_companyName
runat="server" Font-Bold="True" ErrorMessage="A company name is
required.<br>" ControlToValidate="TextBox_companyName"
EnableClientScript="False"></asp:RequiredFieldValidator>

For some reason, this control produces an '&nbsp;' in my source markup when
rendered. Is there anyway to prevent this?

-Darrel
 
For some reason, this control produces an '&nbsp;' in my source markup
when
rendered. Is there anyway to prevent this?

Ah! It's a feature. Figured it out! (display=dynamic)

-Darrel
 
Back
Top