application-wide stylesheet

  • Thread starter Thread starter MattB
  • Start date Start date
M

MattB

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
 
MattB said:
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
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 
Scott said:
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
 
Is there a place I can specify a CSS stylesheet that will be
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
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 
Back
Top