I have a large web site converted from 1.1 to 2.0 and in VS 2005, the IDE
complains that in the ASPX file (html source):
Error 1 Element 'stylesheet' is not a known element. This can
occur if there is a compilation error in the Web site.
C:\Documents and Settings\...\Local
Settings\Temp\1\VWDWebCache\onlineformsdev.....com \sweepv2\dorequest1.aspx 16
7 http://onlineformsdev.....com/
The source code (start of the page) is below showing where the user control
is defined and then where it is reference in the the page. I have multiple
user controls defined and methodically this issue occurs for all.
The page runs fine. There is no actual issue. Just the IDE complains.
How do i correct it so i don't get all of the bogus errors showing in VS2005?
<%@ Page Language="vb" AutoEventWireup="false"
Inherits="onlineforms.net.dosweepv2request1" CodeFile="dorequest1.aspx.vb" %>
<%@ Register TagPrefix="of" TagName="timeoutwarning"
Src="../usercontrols/timeoutwarning.ascx" %>
<%@ Register TagPrefix="of" TagName="header"
Src="../usercontrols/header.ascx" %>
<%@ Register TagPrefix="of" TagName="footer"
Src="../usercontrols/footer.ascx" %>
<%@ Register TagPrefix="ofcc" NameSpace="onlineforms.net.CustomControls"%>
<%@ Register TagPrefix="of" TagName="stylesheet"
Src="../usercontrols/stylesheet.ascx" %>
<!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" xml:lang="en" lang="en">
<head>
<title>
<%=product+" - "+requesttype+" Step "+currentstep+" of
"+totalsteps%>
</title>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<link href="/globalincludes/normal.css" type="text/css"
rel="stylesheet">
<link media="print" href="/globalincludes/printing.css"
type="text/css" rel="stylesheet">
<of:stylesheet id="Stylesheet1" runat="server"></of:stylesheet>
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
********************