473,795 Members | 3,151 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1120
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****@discuss ions.microsoft. com> wrote in message
news:2E******** *************** ***********@mic rosoft.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.stylesheet theme 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******** ********@TK2MSF TNGP14.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****@discuss ions.microsoft. com> wrote in message
news:2E******** *************** ***********@mic rosoft.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******** ******@tk2msftn gp13.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.stylesheet theme 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******** ********@TK2MSF TNGP14.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****@discuss ions.microsoft. com> wrote in message
news:2E******** *************** ***********@mic rosoft.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******** ******@TK2MSFTN GP14.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******** ******@tk2msftn gp13.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.stylesheet theme 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******** ********@TK2MSF TNGP14.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****@discuss ions.microsoft. com> wrote in message
news:2E******** *************** ***********@mic rosoft.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******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP14.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******** ******@tk2msftn gp13.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.stylesheet theme 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******** ********@TK2MSF TNGP14.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****@discuss ions.microsoft. com> wrote in message
news:2E******** *************** ***********@mic rosoft.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.o detocode.com> wrote in message
news:ui******** *************** *********@4ax.c om... 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******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP14.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******** *****@TK2MSFTNG P14.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.o detocode.com> wrote in message
news:ui******** *************** *********@4ax.c om...
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

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

Similar topics

2
3930
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 them a caption, storing the caption and filename in a text file. It's a bit buggy when removing the photos and captions from the file, and also in displaying them on the delete page. you can see it in action at www.4am.com.au/gallery/upload.php...
2
14170
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 Smarty-2.6.7.tar.gz on a system running WindowsXP SP2. Apache and PHP tested out fine. After adding Smarty, I ran the following http://localhost/testphp.php
11
4091
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 html code. I believe I have heard this can be done???
0
822
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. i.e. web service.Also can I use one web service in other web service.This both web services are in same web service project.If so then tell me how it is done.Any Knowledge will be encouraged.So pls Help. Thanks in Advance. Sweetu.
89
6083
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 used." Could anybody tell me why gets() function is dangerous?? Thank you very much. Cuthbert
1
6510
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" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
53
2915
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 pointed to a file called n1124.pdf which turns out to be a C99 standard. It appears that quoting from that standard makes a lot of people say "but C99 isn't widely supported, so C90 is what you ought to do." Is there a C90 file I can download for...
13
4856
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 of files. Thanks to your efforts. Mohd Klaib Example : FILE *out; char filename;
3
3006
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 : <1what is the actual use of this structure; i.e. can it be used anywhere in general programming? It is of course a very important structure, but can we make use of it a standard C program? I am told that using internals of this structure is...
0
9519
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
10438
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
10214
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
10164
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
10001
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...
1
7540
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
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3
2920
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.