473,388 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Skins and CSS in ASP.NET 2.0. I am completely confused!

Hello,

I am completely confused in relation to Themes and CssClass in Asp.Net
2.0.

Consider a custom control (MyControl) that I am creating which composed
by:

Panel_01
Table_01
Label_01
Image_01
Hyperlink_01
Panel_02
Label_02

Now, consider I want the text in Label_01 to be different of text in
Label_02.
And that I want to format the <atags in Hyperlink_01 as follows:

.a, .a:link, .a:visited {color: #950C00; text-decoration:
underline;}
.a:hover, .a:active {color: #950C00;text-decoration: none;}

How should I set the SkinIDs and CssClasses in my controls inside my
Custom control so I can make this work.

I am asking this because sometimes using Skins seems to be a limit over
CSS.
Sometimes I end up using many Skins...

Could someone give me some advice on this?

Thanks,
Miguel

Nov 13 '06 #1
2 1327
The trick to doing Skin files is to add a page, call it Scratch.aspx, to
your project. Drag, for instance, a GridView onto it and then use VS design
time to make it look just like you want your gridviews for a given theme to
look. Then paste the definition into your .Skin file and remove the id
entry. That way you are letting VS do a lot of the work for you.

If you want some GridViews to look different than other GridViews then put
two definitions in the skin file with different CssClass entries. You
should be able to do this with your labels.

--
Regards,
Gary Blakely
Dean Blakely & Associates
www.deanblakely.com
"shapper" <md*****@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hello,

I am completely confused in relation to Themes and CssClass in Asp.Net
2.0.

Consider a custom control (MyControl) that I am creating which composed
by:

Panel_01
Table_01
Label_01
Image_01
Hyperlink_01
Panel_02
Label_02

Now, consider I want the text in Label_01 to be different of text in
Label_02.
And that I want to format the <atags in Hyperlink_01 as follows:

.a, .a:link, .a:visited {color: #950C00; text-decoration:
underline;}
.a:hover, .a:active {color: #950C00;text-decoration: none;}

How should I set the SkinIDs and CssClasses in my controls inside my
Custom control so I can make this work.

I am asking this because sometimes using Skins seems to be a limit over
CSS.
Sometimes I end up using many Skins...

Could someone give me some advice on this?

Thanks,
Miguel

Nov 13 '06 #2
Find documents that describe the difference between Themes and
StyleSheetThemes. Briefly, the difference is when the styles are actually
bound to the HTML.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h

"shapper" <md*****@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hello,

I am completely confused in relation to Themes and CssClass in Asp.Net
2.0.

Consider a custom control (MyControl) that I am creating which composed
by:

Panel_01
Table_01
Label_01
Image_01
Hyperlink_01
Panel_02
Label_02

Now, consider I want the text in Label_01 to be different of text in
Label_02.
And that I want to format the <atags in Hyperlink_01 as follows:

.a, .a:link, .a:visited {color: #950C00; text-decoration:
underline;}
.a:hover, .a:active {color: #950C00;text-decoration: none;}

How should I set the SkinIDs and CssClasses in my controls inside my
Custom control so I can make this work.

I am asking this because sometimes using Skins seems to be a limit over
CSS.
Sometimes I end up using many Skins...

Could someone give me some advice on this?

Thanks,
Miguel

Nov 13 '06 #3

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

Similar topics

1
by: Somesh Bartakkay | last post by:
I recently seen a small GUI program with Skins allplied. the library used for that is Activeskin. i wanna know weather Any GUi-Skins are available for pythons GUI ? or how to use the activeskins...
4
by: Shawn Berg | last post by:
A web site I am working on is built completely in classic ASP, and allows the user to choose different "skins" for the site. The term "skin" being used very generically. When a user selects a Skin...
4
by: Stefano | last post by:
Hi all, can you link me to a directory that contains ready-to-use .Text/Community Server Skins? I'm looking for a XHTML Skin, using table-less layout. Thank you so much! Bye --
0
by: DzemoT. | last post by:
I'm going to use skins in my application for the first time. Which is the best way to implement skins in applications?Any sugestions?Links? Thx
1
by: kfc1976 | last post by:
Hi All, First of all, following are the facts 1) I've been trying to solve the following issue for the past 8 hours (Not Kidding) 2) If I can't find the answer, It will drive me completely crazy...
1
by: kfc1976 | last post by:
Hi All, First of all, following are the facts 1) I've been trying to solve the following issue for the past 8 hours (Not Kidding) 2) If I can't find the answer, It will drive me completely crazy...
1
by: jhcorey | last post by:
I made a change to my Styles.css file on my machine, but when I copy this to a server, I don't see the effect of the changes that I made. I'm using skins that associate different kinds of...
1
by: Jerad Rose | last post by:
I must be missing something, because this seems like it should be so obvious (and maybe it is). All I'm trying to do is create various skins for my site, with each skin containing a list of 30...
11
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.