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 / .NET Framework / New Users / April 2007

Tip: Looking for answers? Try searching our database.

HTML Validation SUDDENLY Problematic

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ujjc001@gmail.com - 25 Apr 2007 19:45 GMT
2.0 aspx page:

So- today I open a project I worked on probably last wednesday and I
now can't get into design view.

For example, the following page give the following error:

Cannot switch views: Validation (Internet Explorer 6): Element 'style'
cannot be nested within element 'td'.

I've tried changing my validation target type, turning off the show
errors, but nothing helps.  Even tried different doc types in the
page.  PLEASE help- can anyone else get past validation with this
simple page?  I know "it's not suposed to be in a div" but this is
wide spread on my site from an opencube menu (not shown on this page,
but still same dif)...  I am really mad because just last time I was
in dotnet it worked fine.
Thoughts?
-----------------------------

<%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="WebForm1.aspx.vb" Inherits="GHC.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>Untitled Page</title>
</head>
<body>
   <form id="form1" runat="server">
   <div><style></style>

   </div>
   </form>
</body>
</html>
Scott M. - 26 Apr 2007 00:00 GMT
Two things:

Your <head> tag has "runat=server" in it (I'm not sure why you'd want that),
but even if you do, anything that is marked with runat="server" must also
have an id attribute applied to it.

<style> tags are only allowed in the head section of a web page, yours is in
the body.

> 2.0 aspx page:
>
[quoted text clipped - 33 lines]
> </body>
> </html>

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.