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 / Visual Studio.NET / IDE / January 2006

Tip: Looking for answers? Try searching our database.

[VS.NET 2005] Nested Master Pages and Unrecognized tag prefix or device filter 'asp'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Markus R. - 18 Jan 2006 09:04 GMT
Hi,

I use nested master pages. On a content page I dropped some ASP.NET
controls. The page and the contols work but VS.NET reports an error for each
<asp:...> server control:

Error 1 Unrecognized tag prefix or device filter 'asp'. ´

This is how the content page looks like:

<%@ Page Language="C#" MasterPageFile="~/Contentpage.master"
AutoEventWireup="true" CodeFile="Pwd.aspx.cs" Inherits="Pwd" Title="Change
Password" %>
<asp:Content ID="Content5" ContentPlaceHolderID="_cpMiddleContent"
Runat="Server">
<asp:changepassword runat="server" ID="_cpChange"></asp:changepassword>
</asp:Content>

Contentpage.master has Main.master as Master Page.

I do not recieve this error if I use an ASP.NET control in
Contentpage.master.

What's wrong here?

Markus
Steven Cheng[MSFT] - 19 Jan 2006 05:07 GMT
Hi Markus,

Welcome to MSDN newsgroup.
As for the design-time error in VS 2005 ide when developing asp.net 2.0
page with Nested master pages, I've just performed some  tests through some
simple master pages and concrete aspx pages, however seems didn't get the
same error behavior...  Maybe page content specific... Can you run the page
correctly at runtime through browser?  

Also, when using master page, it'll raise some errors if the <asp:Content >
or any other server controls tag are put in the aspx template correctly...  

regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Markus R." <markusr@newsgroups.nospam>
| Subject: [VS.NET 2005] Nested Master Pages and Unrecognized tag prefix or
device filter 'asp'
| Date: Wed, 18 Jan 2006 10:04:36 +0100
| Lines: 29
[quoted text clipped - 17 lines]
|
| Error 1 Unrecognized tag prefix or device filter 'asp'. ?

| This is how the content page looks like:
|
[quoted text clipped - 14 lines]
|
| Markus
chrishawn - 24 Jan 2006 21:26 GMT
I am encountering this same issues
seems to be specific to nested masterpages

the page with the content on it still builds fine
just get the red squiggly under the tag and autocomplete no longer
works on the tags.

-shawn
chrishawn - 24 Jan 2006 21:45 GMT
I may have solved it

seems to have happened when i was using a nested master without a code
behind
and deleted the <script runat=server tag when i put it back in it
worked fine.
chrishawn - 26 Jan 2006 15:47 GMT
actually it was the building of the master page that solved it
need to ocasionally rebuild the master page that is nested then it will
work.
like it needs to be in active memory for visual studio.

coworker says if you add an html and body tag on the child page it will
see them as well
but of course your html code is not correct.
chrishawn - 26 Jan 2006 19:05 GMT
okay final statement on the topic..
building makes no difference.
what does make a difference is leaving the nested master page file open
in the IDE editor window.. it recognizes eveything just fine. if you
close that file and work on the child page you will get the asp message
Rod Johnson - 31 Jan 2006 18:55 GMT
I am using nested master pages as well.  This problem just showed up, though and it is really annoying.  I think that there must have been something that triggered this behavior.

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.