473,765 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET themes suck

Hi,

I was going to ask a question, but I think I've answered it so now I am
going to rant about how crappy ASP.NET themes are instead.

As I've indicated above, my problem today is with themes. Per
microsoft "Only one theme can be applied to each page. You cannot apply
multiple themes to a page, unlike style sheets where multiple style
sheets can be applied."

Quote is from here:
http://msdn2.microsoft.com/en-us/library/ykzx33wh.aspx

Basically this says to me that themes cannot cascade (or inherit from
each other) like stylesheets. Right away I see a few obvious problems
with this:
1) you cannot share resources between themes. Every common file must
be duplicated in every theme that uses it (with exception of image
files as far as I can tell). Even completely different themes are
likely to have at least some elements in common.
2) css by nature is cascading. Not provided themes that inherit from
each other breaks this cascading ability. Every stylesheet in your
theme will be included on every page. Why not just build one giant
ugly stylesheet for every theme?

Why does Microsoft have to try to be smarter than the w3c?

If anyone has any suggestions or corrections please feel free to let me
know! I appreciate any help or criticism.

Thanks.
Clint.

Aug 8 '06 #1
6 2493
Hi;

I'm guessing that MS will radically change themes in the next version based
on the fact that they shipped no themes with VS 2005, are not pushing them,
and doesn't have much in the way of a GUI design for them.

I think this was their learning version.

--
thanks - dave
david_at_windwa rd_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Clinton Farleigh" wrote:
Hi,

I was going to ask a question, but I think I've answered it so now I am
going to rant about how crappy ASP.NET themes are instead.

As I've indicated above, my problem today is with themes. Per
microsoft "Only one theme can be applied to each page. You cannot apply
multiple themes to a page, unlike style sheets where multiple style
sheets can be applied."

Quote is from here:
http://msdn2.microsoft.com/en-us/library/ykzx33wh.aspx

Basically this says to me that themes cannot cascade (or inherit from
each other) like stylesheets. Right away I see a few obvious problems
with this:
1) you cannot share resources between themes. Every common file must
be duplicated in every theme that uses it (with exception of image
files as far as I can tell). Even completely different themes are
likely to have at least some elements in common.
2) css by nature is cascading. Not provided themes that inherit from
each other breaks this cascading ability. Every stylesheet in your
theme will be included on every page. Why not just build one giant
ugly stylesheet for every theme?

Why does Microsoft have to try to be smarter than the w3c?

If anyone has any suggestions or corrections please feel free to let me
know! I appreciate any help or criticism.

Thanks.
Clint.

Aug 8 '06 #2
oh well I guess it's back to the old broken stylesheet model where I
code around the ids of elements that correspond to server side
controls....

If anyone from the asp.net team reads these newsgroups, I think it
would be really nice if there were server-side type stylsheets (e.g.
css like) where id's of server side controls are generated and inserted
into a generated stylesheet that the client requests. Of course I
haven't spent a lot of time thinking this through so maybe this isn't
viable. I think this would be millions better than this xml skin crap.

Clint.

David Thielen wrote:
Hi;

I'm guessing that MS will radically change themes in the next version based
on the fact that they shipped no themes with VS 2005, are not pushing them,
and doesn't have much in the way of a GUI design for them.

I think this was their learning version.

--
thanks - dave
david_at_windwa rd_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Clinton Farleigh" wrote:
Hi,

I was going to ask a question, but I think I've answered it so now I am
going to rant about how crappy ASP.NET themes are instead.

As I've indicated above, my problem today is with themes. Per
microsoft "Only one theme can be applied to each page. You cannot apply
multiple themes to a page, unlike style sheets where multiple style
sheets can be applied."

Quote is from here:
http://msdn2.microsoft.com/en-us/library/ykzx33wh.aspx

Basically this says to me that themes cannot cascade (or inherit from
each other) like stylesheets. Right away I see a few obvious problems
with this:
1) you cannot share resources between themes. Every common file must
be duplicated in every theme that uses it (with exception of image
files as far as I can tell). Even completely different themes are
likely to have at least some elements in common.
2) css by nature is cascading. Not provided themes that inherit from
each other breaks this cascading ability. Every stylesheet in your
theme will be included on every page. Why not just build one giant
ugly stylesheet for every theme?

Why does Microsoft have to try to be smarter than the w3c?

If anyone has any suggestions or corrections please feel free to let me
know! I appreciate any help or criticism.

Thanks.
Clint.
Aug 8 '06 #3
In article <11************ **********@b28g 2000cwb.googleg roups.com>,
Clinton Farleigh <fa******@gmail .comwrites
>Hi,

I was going to ask a question, but I think I've answered it so now I am
going to rant about how crappy ASP.NET themes are instead.
OK, but I'm going to rant about how good they are, even with their
limitations.
>As I've indicated above, my problem today is with themes. Per
microsoft "Only one theme can be applied to each page. You cannot apply
multiple themes to a page, unlike style sheets where multiple style
sheets can be applied."
I think you might be confusing themes with CSS. A theme is an overall
visual style for a page. Just like a page can only have one title, it
can have only one theme. Sure elements in that theme can cascade, that's
part of the CSS that makes up the theme.
>Quote is from here:
http://msdn2.microsoft.com/en-us/library/ykzx33wh.aspx

Basically this says to me that themes cannot cascade (or inherit from
each other) like stylesheets.
Because themes are *not* stylesheets!! Stylesheets are a component of
themes.
Right away I see a few obvious problems
with this:
1) you cannot share resources between themes. Every common file must
be duplicated in every theme that uses it (with exception of image
files as far as I can tell). Even completely different themes are
likely to have at least some elements in common.
Well, if you have common files, don't put them in the theme folder, put
them somewhere else and manually add a reference to them in your master
page.

Pretty easy to do and robust.
>2) css by nature is cascading. Not provided themes that inherit from
each other breaks this cascading ability.
No it doesn't, themes are NOT CSS!!
Every stylesheet in your
theme will be included on every page.
Ah, now here you have finally hit on a genuine weakness of themes. Not
one that will render them as bad as you claim, but a weakness that needs
to be addressed nevertheless.
Why not just build one giant
ugly stylesheet for every theme?
Why? This is not a weakness in themes, it's a CSS issue.
>Why does Microsoft have to try to be smarter than the w3c?
Who said they are trying? They are NOT, repeat NOT trying to replace CSS
with themes. They are giving you a way of applying CSS and other things
in a programmable manner.
>If anyone has any suggestions or corrections please feel free to let me
know! I appreciate any help or criticism.
No offence, but it sounds to me like you are really confused about what
themes actually are. Sure they have their weaknesses, but your rant (as
you called it) doesn't centre around them.

Themes are a very powerful tool in designing a site. You just have to
know what they can and can't do. More to the point, you have to know
what they are and are not intended to do.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)
Aug 8 '06 #4
In article <11************ **********@75g2 000cwc.googlegr oups.com>,
Clinton Farleigh <fa******@gmail .comwrites
>If anyone from the asp.net team reads these newsgroups, I think it
would be really nice if there were server-side type stylsheets (e.g.
css like) where id's of server side controls are generated and inserted
into a generated stylesheet that the client requests. Of course I
haven't spent a lot of time thinking this through so maybe this isn't
viable.
Now there's a really good idea ;-)

Maybe you should suggest it to MS. They have a facility n their web site
(don't ask me where) for suggestions.
I think this would be millions better than this xml skin crap.
As mentioned in my other post, I think you are misunderstandin g the
point of themes. Skins are merely a simple way off applying a whole
bunch of styles and/or attributes to one control in one go. Even with
the idea you suggest, skins would still be very useful.

--
Alan Silver
(anything added below this line is nothing to do with me)
Aug 8 '06 #5
I don't think I am confused. My view of themes are as follows: When
dynamically generating the ids of elements that were rendered from
server controls on a page, microsoft broke css selectors that were
based on id's for asp.net controls. Furthermore microsoft broke css
selectors that were based on the type of control by using server side
control tags that do not match the tags of elements which are rendered
on the html page. I am not arguing they made poor decisions here, just
that these decisions had consequences to css.

To correct this, microsoft has built a server side method to change the
look and feel of your rendered html called themes. This is a great
idea, but I feel themes should have paralleled the concepts that were
used in the making of css since in most cases themes will be realized
with css.

Alan Silver wrote:
I think you might be confusing themes with CSS. A theme is an overall
visual style for a page. Just like a page can only have one title, it
can have only one theme. Sure elements in that theme can cascade, that's
part of the CSS that makes up the theme.
This is exactly what CSS is! You can build one stylesheet (or set of
stylesheets) that has a completely different visual style than another
and so on. See http://www.csszengarden.com/ if you want an example.
Ever heard of alternate stylesheets?

CSS rules can be used to style a particular type of element (e.g. input
{ color: red }) or even all elements that have a common attribute (e.g.
input[type="text"] { color: red }) (with the proper browser support) in
addition to the typical class and id selectors that are most commonly
used. Is this not what skin files are doing?

I am not arguing for multiple themes on a page. I am arguing for one
abstract theme that is the combination of many actual themes or for
themes that inherit from other themes. I don't care who stores the
relationship, I just want reuse of common components to be shared!
Because themes are *not* stylesheets!! Stylesheets are a component of
themes.
Yes, but I sure wish they were!
Well, if you have common files, don't put them in the theme folder, put
them somewhere else and manually add a reference to them in your master
page.

Pretty easy to do and robust.
Yes, but this is hacky. What if I wanted to change one or more common
stylesheets in some themes but not in others? I don't want to build
some nasty proprietary framework for this!
>
2) css by nature is cascading. Not provided themes that inherit from
each other breaks this cascading ability.

No it doesn't, themes are NOT CSS!!
Yes it does. How can my style rules cascade when every stylesheet is
included in every page? Note that I am discussing cascading among
external stylesheets, not cascading from external stylesheet to style
element in page to inline styles. I generally try to avoid putting my
css in my html page if possible.
Ah, now here you have finally hit on a genuine weakness of themes. Not
one that will render them as bad as you claim, but a weakness that needs
to be addressed nevertheless.
Why not just build one giant
ugly stylesheet for every theme?

Why? This is not a weakness in themes, it's a CSS issue.
I think you misunderstood this comment. My comment related to all
stylesheets from one theme being included in every page. Why do I need
multiple stylesheets when I could just throw all of my style rules in
one giant stylesheet? At this least way the browser will have to
perform less requests to get external files...
No offence, but it sounds to me like you are really confused about what
themes actually are. Sure they have their weaknesses, but your rant (as
you called it) doesn't centre around them.
none taken. hopefully we can both learn something from our
disagreement.
>
Themes are a very powerful tool in designing a site. You just have to
know what they can and can't do. More to the point, you have to know
what they are and are not intended to do.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)
Aug 9 '06 #6
What has happend is that spoofer has found a way to use them to spoof mail.
12 hundred sites crashed when a spoofer used the themes extention to hack
thousands of sites in mid November. I was one of them. So they are having to
re design the extentions but they do not want to tell anyone. big time
problem. Just looking at these questions anyone can see that it is big
problem.
--
Jamie Ross
"Clinton Farleigh" wrote:
Hi,

I was going to ask a question, but I think I've answered it so now I am
going to rant about how crappy ASP.NET themes are instead.

As I've indicated above, my problem today is with themes. Per
microsoft "Only one theme can be applied to each page. You cannot apply
multiple themes to a page, unlike style sheets where multiple style
sheets can be applied."

Quote is from here:
http://msdn2.microsoft.com/en-us/library/ykzx33wh.aspx

Basically this says to me that themes cannot cascade (or inherit from
each other) like stylesheets. Right away I see a few obvious problems
with this:
1) you cannot share resources between themes. Every common file must
be duplicated in every theme that uses it (with exception of image
files as far as I can tell). Even completely different themes are
likely to have at least some elements in common.
2) css by nature is cascading. Not provided themes that inherit from
each other breaks this cascading ability. Every stylesheet in your
theme will be included on every page. Why not just build one giant
ugly stylesheet for every theme?

Why does Microsoft have to try to be smarter than the w3c?

If anyone has any suggestions or corrections please feel free to let me
know! I appreciate any help or criticism.

Thanks.
Clint.

Dec 24 '06 #7

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

Similar topics

0
1496
by: Full Decent | last post by:
Hey again! In my quest to make proper use of OO PHP I would like to ask for a critique of the current method of doing themes in the Camera Life (http://fdcl.sf.net) software and see if an OO approach is more appropriate. This program consists of multiple PHP pages that include a common.php file. My motivation is to make making themes easier, so we can get more theme contributors! Themes consist of image files, a css file and a PHP...
5
1957
by: Jan Hyde | last post by:
I keep reading that there should be a couple of built in themes in the directory ...\Microsoft.NET\Framework\v2.x.xxxxx\ASP.NETClientFiles\Themes I've yet to see any machine with this 'Themes' directory. Anyone know why?
3
7067
by: johannblake | last post by:
I'm reading up on Themes and Master Pages in ASP.NET 2.0 but I cannot seem to understand what the difference between the two are. Do Master Pages essentially end up doing what Themes do? Is Themes an older part of the .NET architecutre and simply included for backward compatibility or are Themes and Master Pages two different things meant to compliment each other? Can someone give me some insight please.
4
1683
by: Sean | last post by:
My experience now working with master pages on and off for 6 months is that they can be very dangerous when working with themes. One example in particular is the changes I made to my banner menu which now work just fine with all my themes on my development machine but on my production server my non-standard themes are showing effects that are no longer in place even with a complete re-copy of my project. Problems like this with...
3
2572
by: WT | last post by:
Hello, I need to list all available themes for a .NET app, is there any API in ..NET2 for this or should I explore the folder files using IO methods ? Thanks for indication CS
11
6617
by: New Bee | last post by:
Hi, I have been looking at Themes and Skins today and now resonably understand how they work at a ground level. But I have a couple of questions. 1. ) StyleSheetTheme I dont understand where this would be used. As I understand it the precidence is like this.
2
1770
by: mike | last post by:
Hi. I am having trouble grasping the concept of applying a consistent theme to an ASP.net website. I didn't used to like ASP because it was too hard to apply a theme from a common theme folder like I could do easily in PHP, but now I see that it has some nicer theming features and master files. So I want to use web.config to switch which theme I'm using, and I want to be able to have several themes. My understanding of themes is that I...
1
1643
by: archana | last post by:
Hi all, I have just using dot net studio 2005. I am careating one theme. Here global themse are getting stored at 2 location. \Microsoft.NET\Framework\<version>\ASP.NETClientFiles\Themes. Inetpub\wwwroot\aspnet_client\system_web\<version>\Themes for IIS web
1
1616
by: Cramer | last post by:
Using 3.5: Suppose I have defined 20+ themes (including multiple graphics, ..skin files, and css files per theme), and I want to make those themes *available* to all the Web sites on my Web server. How can I accomplish this "making them available" without having the themes all automatically applied to each Web site? I understand that I can create "global themes" by placing the theme folders in...
1
9946
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
9832
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...
0
8830
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7371
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
6646
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();...
0
5272
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3530
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2800
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.