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

How to apply a stylesheet to new pages.

I've added a .css stylesheet to my asp.net project. How can I make
vs.net apply the stylesheet to all new pages (or even current) that I
create?

Thanks
Nov 18 '05 #1
3 1060
"Frank Rizzo" <no**@none.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I've added a .css stylesheet to my asp.net project. How can I make
vs.net apply the stylesheet to all new pages (or even current) that I
create?


I'm not sure there's an automatic way to do this. I just drug the <LINK
REF="..." ...> text to my general tab on the toolbox. I then just drag and
drop it from there onto my page HTML whenever I need it (creating a new
page, for instance).

This is the best solution I've found so far, but I'm open to other
suggestions!

Kelly
Nov 18 '05 #2
Kelly Leahy wrote:
"Frank Rizzo" <no**@none.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I've added a .css stylesheet to my asp.net project. How can I make
vs.net apply the stylesheet to all new pages (or even current) that I
create?


I'm not sure there's an automatic way to do this. I just drug the <LINK
REF="..." ...> text to my general tab on the toolbox. I then just drag and
drop it from there onto my page HTML whenever I need it (creating a new
page, for instance).

This is the best solution I've found so far, but I'm open to other
suggestions!


I do the same thing, but it is annoying. There has got to be a way to
automate this. Anyone...Anyone...
Nov 18 '05 #3
Hi

I don't any automatic way of doing this for the whole project in one go. But
there is an alternative way to add .css file to each page. Open the page in
design view then click on 'Format' menu and then on 'Document Styles'. From
here it is self explanatory.

Hope it helps

Reddy

"Frank Rizzo" <no**@none.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Kelly Leahy wrote:
"Frank Rizzo" <no**@none.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I've added a .css stylesheet to my asp.net project. How can I make
vs.net apply the stylesheet to all new pages (or even current) that I
create?


I'm not sure there's an automatic way to do this. I just drug the <LINK
REF="..." ...> text to my general tab on the toolbox. I then just drag and drop it from there onto my page HTML whenever I need it (creating a new
page, for instance).

This is the best solution I've found so far, but I'm open to other
suggestions!


I do the same thing, but it is annoying. There has got to be a way to
automate this. Anyone...Anyone...

Nov 18 '05 #4

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

Similar topics

1
by: Stefan Siegl | last post by:
Hello, I am trying to learn XSLT to use it in another project. I start reading the book "Java and XSLT" and tried the examples and they are went quite fine (how suprising *g*). Then I tried...
1
by: Daryl | last post by:
Hello I am using apply-templates and would like to pass a parameter to the template using with-param. Using call-template passes the parameter, but when I use apply-templates, the parameter seems...
1
by: Vijay singh | last post by:
Hi wonder if anybody can clear by doubt XML file : <score id="1"> <film>A Little Princess</film> <composer>Patrick Doyle</composer>
1
by: Steven An | last post by:
I'm gonna describe the situation I'm dealing with..but if you're not interested, just skip to the last line where I bluntly ask my question :) Here's my scenario: I've got a huge website that...
3
by: bjam | last post by:
Help! The apply-templates function is not currently allowing me to select a specific template... eventhough I tried putting a select statement, it does not seem to work??? Can someone help show...
3
by: Jamie | last post by:
Hi, Thanks for the excellent answer to my last question! One more: Does anyone have a method they follow for organizing stylesheets themselves? They seem like they can get bloated and hard to...
3
by: Blaise Garant | last post by:
Hi I've made a stylesheet to transform my data into XSL-FO. This stylesheet used to work with MSXSL 4.0 but I've got some issues in ..NET. First, I changed removed all the "node-set()" function...
2
by: jimbo_vr5 | last post by:
Hey I think i've figured out the idea behind apply-templates. But going through the tutorial on <http://www.w3schools.com/xsl/xsl_apply_templates.asp> theres simply just something that i dont...
4
by: Robert | last post by:
Are there any other ways to dynamically apply CSS styling to a page (without using inline CSS)? I'm sure I could dynamically generate a new and uniquely named CSS file "on the fly" when users...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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?

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.