Visual Studio 2005 says I have errors, yet I know they aren't errors and when I run the page, everything works fine.
Here is an example of some code that generates the errors:
Code:
<%@ Master Language="VB" MasterPageFile="~/MasterPages/associations.master" CodeFile="associationsAccounting.master.vb" Inherits="Associations_Accounting_associationsAccounting" %>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="cphPageTitle">
<asp:ContentPlaceHolder runat="server" ID="cphPageTitle2">
Page Title
</asp:ContentPlaceHolder>
</asp:Content>
This code is on a master page, that inherits from a master page, which also inherits from another master page...thats 3 master pages, so this one is the third child, and many pages inherit from this master.
The error is as follows:
Validation (XHTML 1.0 Transitional): This name contains uppercase characters, which is not allowed.
Unrecognized tag prefix or device filter 'asp'.
So the first of those two errors is really not a big deal. For some reason the capitalized "ID" attribute on the contentPlaceHolder server controls is tripping the XHTML validator, which is not a huge problem, and I know I can ignore these because the web server processes those server controls and turns them into the html, and it's not capitalized so its fine.
The second of the two errors is puzzling, because the Content control, which also uses the asp prefix is fine and does not yeild that error, yet the contentplaceholder control inside of it does. If anyone has any information on this I would be very appreciative!
Also, I know this forum is probably originally for people with questions about the wrox books and examples to get assistance, but my company has dozens of wrox books from "Professional Active Server Pages" to our most recent purchase "XSLT 2.0" by Michael Kay...we're definitely loyal customers here, so I figure it's not a misuse to use this forum, and I also help people whenever I can as well...
Neil Timmerman
Programmer
Veris Consulting