473,395 Members | 1,885 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,395 software developers and data experts.

In asp.net, .css file is encouraged to use?

Hi, friends,

In our ASP app, we have a lot of style definitions in our .css file. Now, in
asp.net, .css is encouraged to continue to use, or is better to be replaced
by something new in .net???

Any reference papers?

Thanks a lot.
Nov 19 '05 #1
10 1087
CSS is quite encouraged to be used.

Nothing in .Net replaces CSS.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com...
Hi, friends,

In our ASP app, we have a lot of style definitions in our .css file. Now, in
asp.net, .css is encouraged to continue to use, or is better to be replaced
by something new in .net???

Any reference papers?
Thanks a lot.

Nov 19 '05 #2
IMHO it is actually very good practice to combine the two, skinning, and
css. One of the nice things about using skinning and css, regardless of
whether or not if you only have one theme, is that you get WSIWYG if you set
the page.theme, and the page.stylesheettheme in the IDE. Not to mention the
fact that your css will automatically go in the <head> tag. I have actually
set both of these properties in my config as such :

<system.web>
<pages theme="default" styleSheetTheme="default" />

..... other config suff
</system.web>

Using the location element in the config, you can also change the theme per
file / directory. Or you could just over ride the theme in the page itself.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
CSS is quite encouraged to be used.

Nothing in .Net replaces CSS.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com...
Hi, friends,

In our ASP app, we have a lot of style definitions in our .css file. Now,
in
asp.net, .css is encouraged to continue to use, or is better to be
replaced
by something new in .net???

Any reference papers?
Thanks a lot.


Nov 19 '05 #3
Is skinning supported cross-browser ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Tim Cartwright" <ti************@nospam.us-interactive.com> wrote in message
news:eF**************@tk2msftngp13.phx.gbl...
IMHO it is actually very good practice to combine the two, skinning, and css. One of the
nice things about using skinning and css, regardless of whether or not if you only have
one theme, is that you get WSIWYG if you set the page.theme, and the
page.stylesheettheme in the IDE. Not to mention the fact that your css will
automatically go in the <head> tag. I have actually set both of these properties in my
config as such :

<system.web>
<pages theme="default" styleSheetTheme="default" />

..... other config suff
</system.web>

Using the location element in the config, you can also change the theme per file /
directory. Or you could just over ride the theme in the page itself.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
CSS is quite encouraged to be used.

Nothing in .Net replaces CSS.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com...
Hi, friends,

In our ASP app, we have a lot of style definitions in our .css file. Now, in
asp.net, .css is encouraged to continue to use, or is better to be replaced
by something new in .net???

Any reference papers?
Thanks a lot.



Nov 19 '05 #4
Here is a very nice tutorial / explanation Juan.
http://msconline.maconstate.edu/tuto...pnet10-09.aspx
Also to answer your question, yes, they are cross browser.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e7**************@TK2MSFTNGP14.phx.gbl...
Is skinning supported cross-browser ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Tim Cartwright" <ti************@nospam.us-interactive.com> wrote in
message news:eF**************@tk2msftngp13.phx.gbl...
IMHO it is actually very good practice to combine the two, skinning, and
css. One of the nice things about using skinning and css, regardless of
whether or not if you only have one theme, is that you get WSIWYG if you
set the page.theme, and the page.stylesheettheme in the IDE. Not to
mention the fact that your css will automatically go in the <head> tag. I
have actually set both of these properties in my config as such :

<system.web>
<pages theme="default" styleSheetTheme="default" />

..... other config suff
</system.web>

Using the location element in the config, you can also change the theme
per file / directory. Or you could just over ride the theme in the page
itself.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
CSS is quite encouraged to be used.

Nothing in .Net replaces CSS.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com...
Hi, friends,

In our ASP app, we have a lot of style definitions in our .css file.
Now, in
asp.net, .css is encouraged to continue to use, or is better to be
replaced
by something new in .net???

Any reference papers?
Thanks a lot.



Nov 19 '05 #5
Thanks, Tim.

I haven't gone too deep into skinning.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Tim Cartwright" <ti************@nospam.us-interactive.com> wrote in message
news:eF**************@TK2MSFTNGP09.phx.gbl...
Here is a very nice tutorial / explanation Juan.
http://msconline.maconstate.edu/tuto...pnet10-09.aspx Also to
answer your question, yes, they are cross browser.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e7**************@TK2MSFTNGP14.phx.gbl...
Is skinning supported cross-browser ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Tim Cartwright" <ti************@nospam.us-interactive.com> wrote in message
news:eF**************@tk2msftngp13.phx.gbl...
IMHO it is actually very good practice to combine the two, skinning, and css. One of
the nice things about using skinning and css, regardless of whether or not if you only
have one theme, is that you get WSIWYG if you set the page.theme, and the
page.stylesheettheme in the IDE. Not to mention the fact that your css will
automatically go in the <head> tag. I have actually set both of these properties in my
config as such :

<system.web>
<pages theme="default" styleSheetTheme="default" />

..... other config suff
</system.web>

Using the location element in the config, you can also change the theme per file /
directory. Or you could just over ride the theme in the page itself.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
CSS is quite encouraged to be used.

Nothing in .Net replaces CSS.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com...
> Hi, friends,
>
> In our ASP app, we have a lot of style definitions in our .css file. Now, in
> asp.net, .css is encouraged to continue to use, or is better to be replaced
> by something new in .net???
>
> Any reference papers?
> Thanks a lot.



Nov 19 '05 #6
On Wed, 9 Nov 2005 20:13:22 -0400, "Juan T. Llibre"
<no***********@nowhere.com> wrote:

Maybe some fine-tuning is needed for a true "cross-browser" experience?


All of the skin and theme work happens server side (see "Under the
Hood in http://odetocode.com/Articles/423.aspx). If doubt any cross-
browser issues are due to a deficiency in the theme/skin feature. I'd
suspect the problem is with styles or properties the desginer used in
a skin / theme.

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #7
re:
I'd suspect the problem is with styles or properties
the designer used in a skin / theme.
Two out out three browsers rendered correctly, while a third did not.

re:All of the skin and theme work happens server side
There's some "fine-tuning" needed.

I checked the source for those tables for FF, IE and Opera and they're identical.

Maybe the issue is with Firefox not being identified correctly,
and therefore FF is not getting HTML it can understand well ?

FF *should* render standard HTML the same way IE and Opera render it.
Check out the source. I was surprised when I found them to be the identical.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:ui********************************@4ax.com... On Wed, 9 Nov 2005 20:13:22 -0400, "Juan T. Llibre"
<no***********@nowhere.com> wrote:

Maybe some fine-tuning is needed for a true "cross-browser" experience?


All of the skin and theme work happens server side (see "Under the
Hood in http://odetocode.com/Articles/423.aspx). If doubt any cross-
browser issues are due to a deficiency in the theme/skin feature. I'd
suspect the problem is with styles or properties the desginer used in
a skin / theme.

--
Scott
http://www.OdeToCode.com/blogs/scott/

Nov 19 '05 #8
> I haven't gone too deep into skinning.

You mean, you've only gone "skin-deep?"

--
;-),

Kevin Spencer
Microsoft MVP
..Net Developer
Complex things are made up of
Lots of simple things.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
Thanks, Tim.

I haven't gone too deep into skinning.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Tim Cartwright" <ti************@nospam.us-interactive.com> wrote in
message news:eF**************@TK2MSFTNGP09.phx.gbl...
Here is a very nice tutorial / explanation Juan.
http://msconline.maconstate.edu/tuto...pnet10-09.aspx
Also to answer your question, yes, they are cross browser.


"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e7**************@TK2MSFTNGP14.phx.gbl...
Is skinning supported cross-browser ?

Nov 19 '05 #9
Well, actually sometimes the issue with rendering to Firefox is that the
built in browscaps are outdated, and do not recognize FireFox as an uplevel
browser, so the asp.net engine outputs exactly what it thinks is the
appropriate html for Firefox. Read
http://www.asptoday.com/Content.aspx?id=2339 and
http://slingfive.com/pages/code/browserCaps/ for more info.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ud*************@TK2MSFTNGP14.phx.gbl...
re:
I'd suspect the problem is with styles or properties
the designer used in a skin / theme.


Two out out three browsers rendered correctly, while a third did not.

re:
All of the skin and theme work happens server side


There's some "fine-tuning" needed.

I checked the source for those tables for FF, IE and Opera and they're
identical.

Maybe the issue is with Firefox not being identified correctly,
and therefore FF is not getting HTML it can understand well ?

FF *should* render standard HTML the same way IE and Opera render it.
Check out the source. I was surprised when I found them to be the
identical.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:ui********************************@4ax.com...
On Wed, 9 Nov 2005 20:13:22 -0400, "Juan T. Llibre"
<no***********@nowhere.com> wrote:

Maybe some fine-tuning is needed for a true "cross-browser" experience?


All of the skin and theme work happens server side (see "Under the
Hood in http://odetocode.com/Articles/423.aspx). If doubt any cross-
browser issues are due to a deficiency in the theme/skin feature. I'd
suspect the problem is with styles or properties the desginer used in
a skin / theme.

--
Scott
http://www.OdeToCode.com/blogs/scott/


Nov 19 '05 #10
re:
Read
http://www.asptoday.com/Content.aspx?id=2339 and
http://slingfive.com/pages/code/browserCaps/ for more info.
Yes, I've recommended those very same links, many times, here.

That's what I implied in this statement :
Maybe the issue is with Firefox not being identified correctly,
and therefore FF is not getting HTML it can understand well ?
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Tim Cartwright" <ti************@nospam.us-interactive.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl... Well, actually sometimes the issue with rendering to Firefox is that the built in
browscaps are outdated, and do not recognize FireFox as an uplevel browser, so the
asp.net engine outputs exactly what it thinks is the appropriate html for Firefox. Read
http://www.asptoday.com/Content.aspx?id=2339 and
http://slingfive.com/pages/code/browserCaps/ for more info.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ud*************@TK2MSFTNGP14.phx.gbl...
re:
I'd suspect the problem is with styles or properties
the designer used in a skin / theme.


Two out out three browsers rendered correctly, while a third did not.

re:
All of the skin and theme work happens server side


There's some "fine-tuning" needed.

I checked the source for those tables for FF, IE and Opera and they're identical.

Maybe the issue is with Firefox not being identified correctly,
and therefore FF is not getting HTML it can understand well ?

FF *should* render standard HTML the same way IE and Opera render it.
Check out the source. I was surprised when I found them to be the identical.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:ui********************************@4ax.com...
On Wed, 9 Nov 2005 20:13:22 -0400, "Juan T. Llibre"
<no***********@nowhere.com> wrote:
Maybe some fine-tuning is needed for a true "cross-browser" experience?
All of the skin and theme work happens server side (see "Under the
Hood in http://odetocode.com/Articles/423.aspx). If doubt any cross-
browser issues are due to a deficiency in the theme/skin feature. I'd
suspect the problem is with styles or properties the desginer used in
a skin / theme.

--
Scott
http://www.OdeToCode.com/blogs/scott/



Nov 19 '05 #11

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

Similar topics

2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
11
by: Al Franz | last post by:
Have a large graphic file to display in an IMG SRC tag. How can you have it quickly display a dummy small graphic first while it waits for the full large file size to load in the same place in the...
0
by: Sweetu | last post by:
Hi all, I have created 'sectors' class in sectors.cs file in web services project and in this project I have sector_serv.asmx as web service.How can I use 'sectors' class in sector_serv.asmx file....
89
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
53
by: Jim Cook | last post by:
I previously had asked if there was an online standards file so I could read that and answer my own questions without posting here and getting flamed for not having done my homework. I was...
13
by: mom.klaib | last post by:
Hi I am a student doing a project using C++ builder. I hava a problem in opening a number of files more than 47, when run it only it create 46 file, Please help me to be able to create any number...
3
by: BiGYaN | last post by:
I am not an expert in C, but from all the C code I've seen in my last 4yrs of coding in C, I observe that programmers only use only "FILE *" type and never the actual "FILE" type. So my question is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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...
0
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,...
0
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...
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...
0
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,...

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.