473,839 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Errors in VS 2005 Source view with User Controls? Why?

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\...\Lo cal
Settings\Temp\1 \VWDWebCache\on lineformsdev... ..com\sweepv2\d orequest1.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="onlin eforms.net.dosw eepv2request1" CodeFile="doreq uest1.aspx.vb" %>

<%@ Register TagPrefix="of" TagName="timeou twarning"
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="onli neforms.net.Cus tomControls"%>

<%@ Register TagPrefix="of" TagName="styles heet"
Src="../usercontrols/stylesheet.ascx " %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<title>

<%=product+" - "+requestty pe+" Step "+currentst ep+" of
"+totalstep s%>

</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:styleshee t id="Stylesheet1 " runat="server"> </of:stylesheet>

<meta content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema">
*************** *****
Nov 21 '05 #1
1 2010
Hi Robert,

From the error message and info, seems the IDE is complaining about
something on the html content's format. I'm thinking whether it is related
to the restricted xhtml format validation in VS.NET 2005 for asp.net 2.0.
Would you try posting a complete page which can reproduce the behavior so
that I can test on myside?

Thanks,

Steven Cheng
Microsoft Online Support

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

--------------------
| Thread-Topic: Errors in VS 2005 Source view with User Controls? Why?
| thread-index: AcXu1kyWyRjN9qK yTCKlZEfQD914XQ ==
| X-WBNR-Posting-Host: 171.72.5.240
| From: =?Utf-8?B?Um9iZXJ0?= <ro*****@noemai l.nospam>
| Subject: Errors in VS 2005 Source view with User Controls? Why?
| Date: Mon, 21 Nov 2005 12:01:02 -0800
| Lines: 64
| Message-ID: <AB************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA03.phx.gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3599 10
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| 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\...\Lo cal
|
Settings\Temp\1 \VWDWebCache\on lineformsdev... ..com\sweepv2\d orequest1.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="onlin eforms.net.dosw eepv2request1"
CodeFile="doreq uest1.aspx.vb" %>
|
| <%@ Register TagPrefix="of" TagName="timeou twarning"
| 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="onli neforms.net.Cus tomControls"%>
|
| <%@ Register TagPrefix="of" TagName="styles heet"
| Src="../usercontrols/stylesheet.ascx " %>
|
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
|
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
| <head>
|
| <title>
|
| <%=product+" - "+requestty pe+" Step "+currentst ep+" of
| "+totalstep s%>
|
| </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:styleshee t id="Stylesheet1 "
runat="server"> </of:stylesheet>
|
| <meta content="http://schemas.microso ft.com/intellisense/ie5"
| name="vs_target Schema">
|
|
| *************** *****
|

Nov 23 '05 #2

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

Similar topics

10
2364
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a similar name to the table. Rather than making a long Select Case that could become obsolete if lookup tables are added and the source table of the ListBox is edited I came up with this code.) This code works but of course it gives me build...
12
2560
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current one is a permission error. The project is a VC++ Web Service. It works fine when the service is hosted on the old W2K dev machine, but on the new XP machine I get a permission error when the service tries to open a text file on the Windows...
3
1700
by: Jim in Arizona | last post by:
I'm going insane! I don't know if it's just that the .net 2.0 framework is buggy or if it really is my code. This is pretty hard to explain since I can't even begin to nail down why this is happening. I have two text boxes. One is for the ID number, which when postback occurs, inserts into the related table as the foreign key. The other text box is for notes that go along side the foreign key of the the related table. Basically, the...
1
1151
by: Matt | last post by:
Okay I am really confused here. I understand that Microsoft created stricter rules on the HTML source in the new release of VS 2005 but here is my situation and I really don't know where to go. I have an application with 3rd party controls and they create STYLE tags in their perspective areas. The new rule states STYLE tags should only exist in the HEAD tag and I understand that but I do not have control over where a purchased component...
4
2738
by: Nadav Popplewell | last post by:
Hi everybody, I've install Visual studio Team Edition for Testers on my computers, And I can't seem to find how to show the toolbox. The documenation says there should be a 'Toolbox' menuitem under 'view' menu, But I don't have it! This happens both when editing WinForms & WebForms. Thanks, Nadav
2
1187
by: Natan Vivo | last post by:
Can anyone tell me what exactly what makes intellisense works for custom controls in aspx pages in VS 2005? I just installed Atlas in my office computer, created a new atlas project and it doesn't show any code completion dialog when I type "<atlas:". At home I have exactly the same version of VS 2005, and it works perfectly. I even had to format and reinstall everything here, but it still doesn't work.
2
1565
by: Paulo | last post by:
Hi, I have downloaded the final The Beer House VB source-code and I hit Ctrl+F5, I receive a lot of errors, like that: Error 1 c:\inetpub\wwwroot\TBH_Web\Controls\ProductListing.ascx.vb(6): error ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). c:\inetpub\wwwroot\TBH_Web\Admin\SendNewsletter.aspx 1
6
6235
by: Nathan Sokalski | last post by:
When I am viewing a *.aspx file in Source view Visual Studio 2005 is not displaying the page's controls/elements properties in the properties window. If I switch to Design view, the properties are displayed with no problem. Why is Visual Studio 2005 not displaying the controls' properties in Source view, and what can I do to make it display them in Source view? Thanks. -- Nathan Sokalski njsokalski@hotmail.com...
0
1406
by: Christian | last post by:
Hi all, i already posted this in dotnet.vb.controls but i need some help, so i cant wait... I have written a web control library and have some problems with it. The Library contains only two Controls: a menu bar and a menu item class which can have sub items (from the same class and type).
0
9855
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9697
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10908
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10587
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10649
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10295
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7829
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7018
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
4064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.