Unrecognized tag prefix or device filter 'asp'

Discussion in 'ASP .Net' started by Simon, Nov 25, 2005.

  1. Simon

    Simon Guest


    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"
    The page apparently work fine.

    Masterpage source:

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

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    <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"

    Content page source:

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


    Simon, Nov 25, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.