Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 22nd, 2006, 01:46 PM
Friend of Wrox
 
Join Date: Feb 2006
Location: , , USA.
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts
Default strange "errors" with nested master pages...

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
  #2 (permalink)  
Old November 22nd, 2006, 02:20 PM
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The workaround for this is to leave the master file open in VS

Look here:

http://forums.asp.net/1137934/ShowPost.aspx

More (much more!) on master pages I just found here:

http://odetocode.com/Articles/450.aspx

Regards, Helge

  #3 (permalink)  
Old November 28th, 2006, 05:28 PM
Friend of Wrox
 
Join Date: Feb 2006
Location: , , USA.
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you. Yes this is definitely a nice little bug in VS2005.

Neil Timmerman
Programmer
Veris Consulting


Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Pages Jayahar ASP.NET 3.5 Basics 1 September 2nd, 2008 04:20 PM
Master Pages, Content Pages and CSS carliviris Visual Studio 2005 0 January 8th, 2008 05:56 PM
Master pages wunnavabk ASP.NET 2.0 Professional 1 June 25th, 2007 07:09 AM
Problem in nested master pages. harsh.kintu ASP.NET 2.0 Professional 2 January 9th, 2007 10:04 AM
detail-master pages katie456 Classic ASP Databases 1 June 13th, 2003 04:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.