473,378 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Unrecognized tag prefix or device filter 'asp'

Hi

I have a vs2005 and I try to put a placeholdercontent control on header tag
of the master page, for adding extra header on the content page, but I still
have this error when I build: " Unrecognized tag prefix or device filter
'asp' " on tag <asp:contentplaceholder runat="server"
id="ExtraHeader"></asp:contentplaceholder>.
The page apparently work fine.
Masterpage source:

<%@ Master...
<%@ Register..
<%@ Register...

<!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>
<LINK href="..." rel="stylesheet">
<LINK media=".." rel="stylesheet">
<LINK media="print" href=".." rel="stylesheet">
<LINK href="..." rel="stylesheet">
<LINK href="..." rel="stylesheet">
<script language="javascript" src="...."></script>
<asp:contentplaceholder runat="server"
id="ExtraHeader"></asp:contentplaceholder>
</head>
<body>
</body>
</html>

Content page source:

<%@ Page ....
<asp:Content runat=server ContentPlaceHolderID=ExtraHeader>
<LINK href="extra.css" rel="stylesheet">
</asp:Content>
Thanks

Simon
Nov 25 '05 #1
1 5844
MattM
1
I had the same problem with master pages in a project I had. I'm pretty sure this is just a bug in Visual Studio as I downloaded code from Microsoft ( http://msdn.microsoft.com/msdnmag/is...20MasterPages/ ) and it matched what I did. Plus the pages still render fine.

To get rid of the errors, simply close the master pages when you build the web site. I did that and the errors magically vanished. It doesn't make me very confident about Visual Studio 2005 though.
Mar 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sreedharan | last post by:
Hi, I am using C#. Is there no Join method (in thread class)for Smart device application? And Also i noticed that Name property isn't there(got compiler error when trying to use them) Is this...
2
by: Roger Helliwell | last post by:
Hey guys, Just sat down this morning to continue on a project (using Whidbey) I've been working on for 3 months. To my surprise (which quickly turned to horror) I started receiving the following...
7
by: kai | last post by:
Hi, I have XP Pro and VS2005 final version. I have been running some examples from a MS Press books (ASP.NET 2.0 Core Reference and), I run into this problems: Parser Error Message:...
0
by: Simon | last post by:
Hi I have a vs2005 and I try to put a placeholdercontent control on header tag of the master page, for adding extra header on the content page, but I still have this error when I build: "...
3
by: Tim_Mac | last post by:
hi, i have a master page, and i want to put an asp:literal control in the <head><title> section. but it won't build because it says it's an unrecognized tag prefix. if i put the control inside...
0
by: Alan Silver | last post by:
Hello, I have two weird problems here. I have a master page file that works absolutely fine. When I load it up in VWD, I get a couple of weird (to me) errors. First, I get the error...
1
by: Luurs | last post by:
Hi All, I've been using a asp-label in the HTML <headsection for quite some time in order to dynamically generate meta-keywords,-description, css and js references. Though the actual...
0
by: =?Utf-8?B?SnVzdGluIFJvYmVydHM=?= | last post by:
Hi I am developing a mobile web VB asp.net application in VS 2005. The forms are mobile web forms. I have a mobile web configuration page (web.config). In one of my forms I have a DeviceSpecific...
4
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post by:
Hi everybody, I've got an ASP.NET 1.1 application and I need to add to it new Browser Capabilities information for 3 new cellular phones. I used to use...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.