Welcome Guest Search | Active Topics | Sign In | Register

Uploader renders html not xhtml Options
Paul Creedy
Posted: Monday, June 25, 2007 7:35:09 AM
Rank: Advanced Member
Groups: Member

Joined: 6/5/2007
Posts: 76
When placing the uploader on the screen it renders upper case html

eg: <TABLE cellSpacing=0 cellPadding=2 width=250 border=0><TBODY><TR><TD>

For me at least this should be xhtml and lower case.

Is there an option to use xhtml formatting? Perhaps this should render only xhtml instead of html as html is more or less out for newly developed sites.

eg: <table cellSpacing=0 cellPadding=2 width=250 border=0><tbody><tr><td>

eo_support
Posted: Monday, June 25, 2007 7:53:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Hi Paul,

You are looking at the LayoutTemplate in Visual Studio 2003. The LayoutTemplate supposes to be completely in your hand --- it's a template for you to edit. So you can always change it whatever way you want, including the case.

The default template that we generate is actually lower case, however Visual Studio 2003 always format them into upper case. Visual Studio 2003 does that with pretty much everything in your page, because it is not designed to be xhtml compliant. And the page generated by ASP.NET 1.0 by default is not XHTML compliant either.

If you try it in Visual Studio 2005, you will see all the elements are lower case.

Thanks
Paul Creedy
Posted: Monday, June 25, 2007 8:13:50 AM
Rank: Advanced Member
Groups: Member

Joined: 6/5/2007
Posts: 76
I'm using VS2005 pro ?

Attributes need to be in quotes also:

eg
table cellspacing=0 cellpadding=2 width=450

needs to be:
table cellspacing="0" cellpadding="2" width="450"

I can change all that in html view though now that I now it is ok to do so.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.