asp.net - VS 2010 produces Validation error -


i crate new webapplication project, , site.master code

    <%@ master language="vb" autoeventwireup="false" codebehind="site.master.vb" inherits="webtestapp.site" %>  <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head runat="server">     <title></title>     <link href="~/styles/site.css" rel="stylesheet" type="text/css" />     <asp:contentplaceholder id="headcontent" runat="server">     </asp:contentplaceholder> </head> <body>     <form runat="server">     <div class="page">         <div class="header">             <div class="title">                 <h1>                     asp.net application                 </h1>             </div>             <div class="logindisplay">                 <asp:loginview id="headloginview" runat="server" enableviewstate="false">                     <anonymoustemplate>                         [ <a href="~/account/login.aspx" id="headloginstatus" runat="server">log in</a> ]                     </anonymoustemplate>                     <loggedintemplate>                         welcome <span class="bold"><asp:loginname id="headloginname" runat="server" /></span>!                         [ <asp:loginstatus id="headloginstatus" runat="server" logoutaction="redirect" logouttext="log out" logoutpageurl="~/"/> ]                     </loggedintemplate>                 </asp:loginview>             </div>             <div class="clear hideskiplink">                 <asp:menu id="navigationmenu" runat="server" cssclass="menu" enableviewstate="false" includestyleblock="false" orientation="horizontal">                     <items>                         <asp:menuitem navigateurl="~/default.aspx" text="home"/>                         <asp:menuitem navigateurl="~/about.aspx" text="about"/>                     </items>                 </asp:menu>             </div>         </div>         <div class="main">             <asp:contentplaceholder id="maincontent" runat="server"/>         </div>         <div class="clear">         </div>     </div>     <div class="footer">      </div>     </form> </body> </html> 

the asp:content inside head works fine (without validation error)
other asp: controls gives me error
warning 13 validation (): element 'contentplaceholder' not supported.
, hppen in controls (not in contentplaceholder).
of course same issue i'm face in default.aspx file.

resolving "validation (): element ‘xxxx’ not supported" warning in visual studio 2005/2008

delete files “c:\documents , settings[username]\application data\microsoft\visualstudio\9.0\reflectedschemas” folder (or “…\visualstudio\8.0\…” if running visual studio 2005) in windows xp. in windows 7 under "c:\users{user profile}\appdata\roaming\microsoft...etc". remember "visualstudio" part of path different depending on version installed.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -