Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Nathan Sokalski #1
The nowrap Property of TD Tags
I want to create TD tags with the nowrap property. I have a user control
which sets the Wrap property of a TableCell to False when dynamically
creating a table as follows:
cellCurrButton.Wrap = False
When the code is run, this creates a TD tag that looks like the following:
<td nowrap="nowrap"></td>
However, when I edit the properties of a TD Tag created in Design, there is
a property called nowrap which when set to True creates a TD Tag that looks
like the following:
<td nowrap></td>
I prefer the second way because it is shorter and I also believe it is the
correct HTML. However, because the TableCell object does not have this
property, I cannot use it when creating generated TableCells. Why are these
two outputs so different? Thanks.
--
Nathan Sokalski
[email]njsokalski@hotmail.com[/email]
[url]http://www.nathansokalski.com/[/url]
Nathan Sokalski Guest
-
Inspector Property: Dynamic tags
Hi, I am working on an extension for Dreamweaver, currently on an Inspector. So what I understand is, that if you use the following tag: <!--... -
'nowrap' available in flash forms?
When using formgroup=hbox,horizontal,hdividedbox I'm still having issues with the page not forcing horizontal-ness. Instead of a dynamic scroll... -
.Net 2.0 : Smart tags and Readonly Collection Property
Hi, I've built a composite control with a ReadOnly custom collection property. I can manage collection items in the property editor with a... -
nowrap with Image and Checkbox
Hi eveyone - I am outputing images with checkboxes to a display page and I am having problems getting the checkbox to "stick" with the image.... -
Using ParseChildren attribute to load child tags - VS removes tags
I am building a poll control, nested in the tag I have child tags to setup the poll options. Everything works fine, but when I edit a property in... -
Steve Goodyear #2
RE: The nowrap Property of TD Tags
The first is XHTML and second is HTML 4 compatible.
Cheers,
Steve Goodyear
Steve Goodyear Guest
-
Mikhail Arkhipov (Microsoft) #3
Re: The nowrap Property of TD Tags
On 5/20/05 20:49, in article [email]uLaHKgbXFHA.2520@TK2MSFTNGP09.phx.gbl[/email], "Nathan
Sokalski" <njsokalski@hotmail.com> wrote:
nowrap="nowrap" is better since it is compliant to modern standards like> I want to create TD tags with the nowrap property. I have a user control
> which sets the Wrap property of a TableCell to False when dynamically
> creating a table as follows:
>
> cellCurrButton.Wrap = False
>
> When the code is run, this creates a TD tag that looks like the following:
>
> <td nowrap="nowrap"></td>
>
> However, when I edit the properties of a TD Tag created in Design, there is
> a property called nowrap which when set to True creates a TD Tag that looks
> like the following:
>
> <td nowrap></td>
>
> I prefer the second way because it is shorter and I also believe it is the
> correct HTML. However, because the TableCell object does not have this
> property, I cannot use it when creating generated TableCells. Why are these
> two outputs so different? Thanks.
XHTML. Standalone attributes are deprecated. In XHTML all attributes that
were previously standalone must have value equal to the attribute name.
VS 2003 is not XHTML compatible so Designer generates standalone attribute
which is OK for HTML 4. VS 2005 Designer always generates nowrap="nowrap"
since VS 2005 is XHTML compatible.
What you see at runtime is HTML generated by ASP.NET runtime. ASP.NET
controls try to generate XHTML whenever possible.
Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights
Mikhail Arkhipov (Microsoft) Guest



Reply With Quote

