Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Attribute 'ms_2d_layout' is not a valid attribute of element 'table'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CdnRebel - 29 Jun 2007 21:56 GMT
Hi,

I got the above message on the code below.  The code is in an ASP.NET program
(I think from version 1.1) and the error message shows up when I open the
file in Visual Studio 2005.  I am new to ASP.NET and Visual Studio.  Is there
another way to write that to get the same results?  This is happening on
every other program that I have opened on the website that I am updating.

<TABLE height="737" cellSpacing="0" cellPadding="0" width="737" border="0"
ms_2d_layout="TRUE">

Thanks!!
Alexey Smirnov - 30 Jun 2007 11:33 GMT
> Hi,
>
[quoted text clipped - 8 lines]
>
> Thanks!!

It's a validation error.

Go to Tools - Options - Text Editor - HTML - Validation
(or View - Toolbars - HTML Source Editing)

and change the target schema for validation

If this attribute (ms_2d_layout) is not needed, simply remove it from
your code
CdnRebel - 03 Jul 2007 18:16 GMT
>> Hi,
>>
[quoted text clipped - 11 lines]
>If this attribute (ms_2d_layout) is not needed, simply remove it from
>your code

Hi Alexey,

Your information got me to a certain point, but I wasn't sure what to change
the target schema to.  I think that I had mentioned that I am new to ASP.NET,
Visual Studio and C# and I may have forgotten XML.  What should I be
selecting?

Thanks!!
Mary
Alexey Smirnov - 04 Jul 2007 08:05 GMT
On Jul 3, 7:16 pm, "CdnRebel via DotNetMonster.com" <u35447@uwe>
wrote:
> >> Hi,
>
[quoted text clipped - 18 lines]
> Visual Studio and C# and I may have forgotten XML.  What should I be
> selecting?

Mary,

the target schema depends on your document. It's used for client-side
markup validation (and intellisense + autocomplete). In your case, the
problem is not really in the schema, but in the ms_2d_layout attribute
which is not supported by selected target schema.

http://msdn2.microsoft.com/en-us/library/f940516c(VS.80).aspx

If you do not want to use validation, you can turn it off. For
details, see

How to: Set Validation Options for HTML Editing in Visual Web
Developer.
http://msdn2.microsoft.com/en-us/library/0byxkfet(VS.80).aspx

Hope it helps
CdnRebel - 04 Jul 2007 19:56 GMT
Alexey,

Bo Chen on ASP.Net forums sent me the following info with regard to this
problem, but they weren't as thorough as you about fixing the validation:

First, you don't have to fix validation errors. They don't stop your  program
from running correctly.

Second, ms_2d_layout is not known to be a valid attribute for table indeed.
Likely, it is an additional attribute used somewhere in the client code. If
it is true, just ignore the error.

see original post at: http://www.mcse.ms/message2358272.html

Thanks,
Mary

>On Jul 3, 7:16 pm, "CdnRebel via DotNetMonster.com" <u35447@uwe>
>wrote:
[quoted text clipped - 21 lines]
>
>Hope it helps

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.