473,783 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 Themes are not WYSIWYG

Hello,

I'm starting to use Themes. I skin some Web controls, like a WebPart and a
CatalogPart. While browsing my Web page, I can see that the Theme is
working, in VS 2005, in design view, I don't see the Theme styles being
applied. Neither are the properties reflected in the Properties window.

Am I doing something wrong? Should the skin properties be reflected in the
Properties Window and in the Design view. I do hope so, because otherwise I
see this as a big problem. Probably making Themes useless for me.

Thanks.
Michael
Dec 12 '05 #1
12 1386
RCS
I don't know of any way to make that work - it always displays controls
however they are on a page, without applying a specific theme.

Themes are really for client-side presentation - how could not-seeing the
corrent fonts/colors make this concept useless to you, I wonder?

"Michael" <no****@nospam. com> wrote in message
news:uW******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

I'm starting to use Themes. I skin some Web controls, like a WebPart and a
CatalogPart. While browsing my Web page, I can see that the Theme is
working, in VS 2005, in design view, I don't see the Theme styles being
applied. Neither are the properties reflected in the Properties window.

Am I doing something wrong? Should the skin properties be reflected in the
Properties Window and in the Design view. I do hope so, because otherwise
I see this as a big problem. Probably making Themes useless for me.

Thanks.
Michael

Dec 12 '05 #2
Sounds like you are doing this incorrectly.
The control formatting properties are defined in the skin file.
The content pages, holding the controls for display, reference the "skinid" for formatting.
In the properties for the design view, you should specify the skinid to be applied.

-------------------------------------------
I would much rather chew on tinfoil than try to code in C#.
Dec 12 '05 #3
Hi Jon,

I'm not specifying the SkinID because I'm pulling from the default skin.

Thanks,
Michael
"Jon Paal" <Jon nospam Paal @ everywhere dot com> wrote in message
news:ua******** *****@TK2MSFTNG P15.phx.gbl...
Sounds like you are doing this incorrectly.
The control formatting properties are defined in the skin file.
The content pages, holding the controls for display, reference the
"skinid" for formatting.
In the properties for the design view, you should specify the skinid to be
applied.

-------------------------------------------
I would much rather chew on tinfoil than try to code in C#.

Dec 12 '05 #4
Hi RCS,

Here is an example.

I have a skin file where I define WebPartZone's WebPartVerbRend erMode to
"TitleBar", like:
<asp:WebPartZon e runat="server" WebPartVerbRend erMode="TitleBa r">

In my Web page where I'm using a WebPartZone, in the properties window, the
WebPartVerbRend erMode is "Menu". Clearly this is wrong. VS2005 designer mode
should be reading from the appropriate Skin file and change the properties
in the properties window accordingly. If it does not render correctly, maybe
I can live with that; but showing the wrong perperty values in the
properties window is not acceptable.

As I said, maybe I'm doing something wrong. Or maybe this is a bug with some
controls, like WebPartZone. Maybe simpler controls implement this correctly;
I haven't tried yet.

Thanks,
Michael
"RCS" <rs****@gmail.c om> wrote in message
news:Vb******** ********@newssv r33.news.prodig y.com...
I don't know of any way to make that work - it always displays controls
however they are on a page, without applying a specific theme.

Themes are really for client-side presentation - how could not-seeing the
corrent fonts/colors make this concept useless to you, I wonder?

"Michael" <no****@nospam. com> wrote in message
news:uW******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

I'm starting to use Themes. I skin some Web controls, like a WebPart and
a CatalogPart. While browsing my Web page, I can see that the Theme is
working, in VS 2005, in design view, I don't see the Theme styles being
applied. Neither are the properties reflected in the Properties window.

Am I doing something wrong? Should the skin properties be reflected in
the Properties Window and in the Design view. I do hope so, because
otherwise I see this as a big problem. Probably making Themes useless for
me.

Thanks.
Michael


Dec 12 '05 #5
in your web.config file the <pages> element have an attribute called
styleSheetTheme . Defind you default theme there and you will get your
theme to show up in designer.

e.g.

<pages styleSheetTheme ="BlueTheme" />

Dec 12 '05 #6
RCS
I wasn't thinking in terms of using the SkinID - I only uses themes in the
web.config where you do <pages Theme="LightBlu e" /> or something like that..

And in that particular case, I don't ever see the designer load the
appropriate theme...
"Michael" <no****@nospam. com> wrote in message
news:OU******** *****@TK2MSFTNG P11.phx.gbl...
Hi RCS,

Here is an example.

I have a skin file where I define WebPartZone's WebPartVerbRend erMode to
"TitleBar", like:
<asp:WebPartZon e runat="server" WebPartVerbRend erMode="TitleBa r">

In my Web page where I'm using a WebPartZone, in the properties window,
the WebPartVerbRend erMode is "Menu". Clearly this is wrong. VS2005
designer mode should be reading from the appropriate Skin file and change
the properties in the properties window accordingly. If it does not render
correctly, maybe I can live with that; but showing the wrong perperty
values in the properties window is not acceptable.

As I said, maybe I'm doing something wrong. Or maybe this is a bug with
some controls, like WebPartZone. Maybe simpler controls implement this
correctly; I haven't tried yet.

Thanks,
Michael
"RCS" <rs****@gmail.c om> wrote in message
news:Vb******** ********@newssv r33.news.prodig y.com...
I don't know of any way to make that work - it always displays controls
however they are on a page, without applying a specific theme.

Themes are really for client-side presentation - how could not-seeing the
corrent fonts/colors make this concept useless to you, I wonder?

"Michael" <no****@nospam. com> wrote in message
news:uW******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

I'm starting to use Themes. I skin some Web controls, like a WebPart and
a CatalogPart. While browsing my Web page, I can see that the Theme is
working, in VS 2005, in design view, I don't see the Theme styles being
applied. Neither are the properties reflected in the Properties window.

Am I doing something wrong? Should the skin properties be reflected in
the Properties Window and in the Design view. I do hope so, because
otherwise I see this as a big problem. Probably making Themes useless
for me.

Thanks.
Michael



Dec 12 '05 #7
Well, if the page has a default theme and the control has a skinID,
then it should render in design mode. This happens for me as I was
working on a project with themes earlier today. So, I don't have a
clue why its not rendering for you.

Dec 12 '05 #8
Thanks!

I had <pages theme="LightBlu e"> in my Web.config. Now I changed it to <pages
theme="LightBlu e" styleSheetTheme ="LightBlue" >. I can now see the styles
being applied in VS Design view. My properties are still showing the wrong
values though.

Do you know what is the difference between "theme" and "styleSheetThem e"? I
read the help file, but I'm still unclear about the difference, if any. The
help file seems to say that both are the same.

Thanks again.
Michael

"tdavisjr" <td******@gmail .com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
in your web.config file the <pages> element have an attribute called
styleSheetTheme . Defind you default theme there and you will get your
theme to show up in designer.

e.g.

<pages styleSheetTheme ="BlueTheme" />

Dec 12 '05 #9

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
1685
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...
6
2494
by: Clinton Farleigh | last post by:
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."
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
6620
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
1771
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
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...
0
9480
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
10315
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
10147
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
10083
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
9946
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
8968
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...
0
5379
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...
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
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.