CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008 Tags:
Item Type: NewsGroup Date Entered: 12/30/2007 3:17:41 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 6 Views: 738 Favorited: 0 Favorite
7 Items, 1 Pages 1 |< << Go >> >|
jbrozek
Asp.Net User
The class or CssClass value is not defined12/30/2007 3:17:41 AM

1

Hope I'm asking this in the correct place, here we go.  I've got a solution (ASP.NET Web Project) in VS.NET 2008 that looks like this (only showing important parts)

main solution
    |_ ctrl
          |_ Header.ascx
    |_ style
          |_ ie.css
    site.master
    default.aspx

 
The site.master has a link to the ie.css style sheet.  Everything looks fine in the browser when I run it.  But 2008 is giving me "The class or CssClass value is not defined" warnings on classes used in the html of the Header.ascx file.  I've seen mention of this issue with some of the Beta 2008's but I'm not running a beta.  Anybody have a solution?  I should be able to shape projects this way I would think.  Thanks for any help.


 

noahb
Asp.Net User
Re: The class or CssClass value is not defined12/30/2007 3:37:48 AM

0

I've had this problem in 2005 -- it's a pain.  Can you tell me how you're defining where ie.css is placed?  If the site.master defines it as "style/ie.css" then it's possible the Header.ascx also looks there, but this relative path becoms "/ctrl/style/ie.css" and VS complains.  I don't really have a fix though, sorry, just if that's the problem then there might be ways to address is....


Noah Blumenthal
Computer Innovations
email/gtalk: noah [at] computerinnovationsny.com

Give people the credit they deserve - remember to click the "Answer" button on the post that answers your question.

"Any fool can recall the flight of birds across a moonlit sky but it takes a genius to forget the face of his mother."
Mikhail Arkhipo
Asp.Net User
Re: The class or CssClass value is not defined12/30/2007 5:55:18 AM

0

ASCX is a user control which can be used in multiple pages. Each page technically can have separate style or theme applies. Thus, designer does not know which stylesheet to apply to the control until control is included in the page. Here is related thread: http://forums.asp.net/t/1184716.aspx 


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
jbrozek
Asp.Net User
Re: The class or CssClass value is not defined12/30/2007 9:54:36 PM

0

I understand, following that logic, why not give me options in VS to "don't validate user control CSS", does any body know if a setting like this exists?

pbz
Asp.Net User
Re: The class or CssClass value is not defined12/31/2007 1:16:18 AM

-1

 I second that...

richardneverett
Asp.Net User
Re: The class or CssClass value is not defined1/24/2008 5:23:46 PM

0

You can add stylesheet references to your user controls, which solves this problem and also means that they render correctly in the designer.

However, your rendered web page will then be littered throughout with stylesheet links (depending on how many you added to each user control, and how many usercontrols you have on your page) - which is far from ideal.

alun65
Asp.Net User
Re: The class or CssClass value is not defined2/17/2008 8:45:08 AM

0

 If this bugs you, you can turn it off by checking this box (in Tools -> Options) :  TextEditor->ValidationVs2008-turn-off-html-errors

You may not want to do this, though?  it could potentially save you time if you?re looking for a rendering bug.

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
JavaScript: the definitive guide Authors: David Flanagan, Pages: 994, Published: 2006
PROFESSIONAL COMMUNITY SERVER THEMES Authors: Wyatt Preul, Ben Tiedt, Pages: 350, Published: 2007
Beginning ASP.NET E-Commerce in C#: From Novice to Professional Authors: Cristian Darie, Karli Watson, Pages: 736, Published: 2009
Accessible XHTML and CSS web sites: problem - design - solution Authors: Jon Duckett, Pages: 480, Published: 2005
Accessible XHTML and CSS Web sites problem, design, solution Authors: Jon Duckett, Pages: 458, Published: 2005

Web:
The class or CssClass value is not defined - ASP.NET Forums But 2008 is giving me "The class or CssClass value is not defined" warnings on classes used in the html of the Header.ascx file. ...
The class or CssClass value is not defined error - ASP.NET Forums I have created a Web User Control that uses some css classes and I get 3 error messages about not defined css class. Here are the files : ...
Tired of Visual Studio Telling You "The class or CssClass value is ... If you are tired of Visual Studio giving you the warning "The class or CssClass value is not defined," there is a way to suppress it. Here's my solution: ...
Feedback: The class or CssClass value is not defined Nov 7, 2007 ... Error 23 The class or CssClass value is not defined. D:\Users\Honza\Documents\ Programy\Hol ghunwI' X\Doc\CLI.htm 323 23 D:\...\Doc\ ...
The class or CssClass value is not defined Jan 14, 2009 ... 2008 is giving me "The class or CssClass value is not defined" error on classes used in the html of the Default.aspx file. ...

The class or CssClass value is not defined - ng.asp-net-forum ... The class or CssClass value is not defined, > ROOT > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008, Date: 12/30/2007 3:17:41 ...
The skinid value is not defined the theme or stylesheet and error ... "The class or cssclass value is not defined", in all code pages. ... Master Pages, Themes, and Control Skins masterPageFile value defined in ...
Id and CssClass not defined - microsoft.public.dotnet.framework.aspnet Warnings about the CssClass value not defined - ASP.NET Forums Error using Theme : "The class or CssClass value is not defined." Mar 17, 2009 . ...
Pages Rights For Each User - ng.asp-net-forum ... The class or CssClass value is not defined - ng.asp-net-forum ... Each page technically can have separate style or theme applies. ...
Do While Not rstStaff.EOF - ng.asp-net-forum ... The class or CssClass value is not defined - ng.asp-net-forum ... EOF - ng.asp- net-forum ... web.config references not working when using IE - ng. ...






performance slows for add, delete or modification of pages in site w/ ~250 tabs

propagated domain name

dotnetnuke 3.0.5 posted

strange error on dnn 3.1

module size

announcing the launch of "dnn alerts" :: security, announcements, and community service announcements

dnn 3.0.12 gallery security question

the three s's

host account cannot upload any files or install any new modules

has anyone had any issues with dnn and state control?

multple domain names with one dnn4.0.2 installation...

any experts? complicated upgrade: dnn 2.12 to dnn3x + communityserver

2 portals on 3....

batch print from browser

module which tracks db calls?

upgrade question

gooddogs repository (gooddogs is down, where to download)

any canadians processing transactions through beanstream

tabimage

popup calendar and textbox post back

newbie:installation help

documentation?

initializeobject and extending userinfo coding question

error when ftp dnn site to live webserver

web seminars for dnn portal

easy way to get the tabid of a given tabname

event problems

help! null reference exception

create new users programatically - dnn 3.1.1

urgent....tracking serial number

   
  Privacy | Contact Us
All Times Are GMT