Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting seems to be ignored
Message
De
08/04/2014 07:45:00
 
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01598249
Message ID:
01598251
Vues:
31
Hmmm... My first thought was, "don't use tables. There are other ways to accomplish almost everything tables give you."

My next thought was, "I believe there are some tags that are considered wrong inside a tr tag. Without knowing what else the markup is doing, it's difficult to know what's happening" My suggestion, from the browser, do View Source, then save it as an html file, open that in Visual Studio, and start looking for squiggly lines.


>Hi All, in my _layout.cshtml page in a MVC 4 app, I declare a table tag a couple of tr tags an then call RenderBody() from within one of the tr tags, all works as expected until I add another tr tag after RenderBody() has completed, what is happening is, the text in my final tr tag is not being rendered as it should, i.e my color, align and other attributes are being ignored and the text is just rendered in black and white and not aligned as I specified, I can't paste the view here as the tags are interpreted by UT. Any idea what I'm doing wrong here ?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform