Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Missing Element error
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
01471137
Message ID:
01471151
Vues:
56
>I am using ASP.NET with C# and did some simple code, using TextAlign property in the CheckBox control. When I used the code: TextAlign = "Left", the program would not run and said, "Missing Element" (In other words, the page would not render.). When I removed the TextAlign Property, the program ran fine. Has anyone seen this error before? Is this a VS2010 bug?

Hi,

I've never seen this.
AFAIC the only mistake in defining a TextAlign attribute which will generate an error is the mis-spelling of the attribute value. e.g:
<asp:CheckBox  runat="server" TextAlign="Lft" />
which will give a "Error creating Control" message as design time and a Parser Error in the browser - but that doesn't sound like what you are seeing.
Mis-spelling the attribute name will generate a warning at design time but will simply render the attribute in the HTML Span used to wrap the Checkbox and Label.

Can you still re-produce this?

>
>By the way, what do I use to display ASP.NET code without getting an error on UT? I cannot use the < pre > < / pre > keywords.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform