By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,822 Members | 729 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,822 IT Pros & Developers. It's quick & easy.

application-wide stylesheet

P: n/a
Is there a place I can specify a CSS stylesheet that will be applied to
all pages in my app? I've been adding it to the <head> of each page, but it
sure would be easier to specify it once. TIA!

Matt
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
MattB wrote:
Is there a place I can specify a CSS stylesheet that will be applied to
all pages in my app? I've been adding it to the <head> of each page, but it
sure would be easier to specify it once. TIA!


Matt, it would probably make sense to have a User Control that you place
on each page that has the HTML markup for the "top" of each page. Kind
of like an include file in classic ASP.

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
Nov 18 '05 #2

P: n/a
Scott Mitchell [MVP] wrote:
MattB wrote:
Is there a place I can specify a CSS stylesheet that will be
applied to all pages in my app? I've been adding it to the <head> of
each page, but it sure would be easier to specify it once. TIA!


Matt, it would probably make sense to have a User Control that you
place on each page that has the HTML markup for the "top" of each
page. Kind of like an include file in classic ASP.


OK, I do actually have a user control that I'm using as a header. I was
going to put it in there, but noticed the <head> section was part of the
aspx page. Should I move the contents of that section to the header.ascx or
is it ok to double up? Seems like something that should only appear once.

Thanks!

Matt
Nov 18 '05 #3

P: n/a
>>> Is there a place I can specify a CSS stylesheet that will be
applied to all pages in my app? I've been adding it to the <head> of
each page, but it sure would be easier to specify it once. TIA!


Matt, it would probably make sense to have a User Control that you
place on each page that has the HTML markup for the "top" of each
page. Kind of like an include file in classic ASP.

OK, I do actually have a user control that I'm using as a header. I was
going to put it in there, but noticed the <head> section was part of the
aspx page. Should I move the contents of that section to the header.ascx or
is it ok to double up? Seems like something that should only appear once.


It should only appear once. Remove the <head>, <html>, etc. from all of
your ASP.NET Web pages that will use the header user control.

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.