M
Michael Rich
Is there a way to apply a single stylesheet to all pages in a VS.net ASP.net
project (vb)?
Thanks;
MR
project (vb)?
Thanks;
MR
http://msdn.microsoft.com/library/d...uipageclassregisterclientscriptblocktopic.aspMatt said:Hello Michael,
Well, in all but the most trivial cases, you will likely have a base class
that all of your pages derive from. Add some code to register
<link href="mystylesheet.css" type="text/css" rel="stylesheet">
and it will be applied to any page you derive from. You might want to look
at Page.RegisterClientScriptBlock [1] for this. The name implies that it
should be only used with <script> tags, but this will work with any tag that
needs to insure that there is only one instance of the tag on the page.
This is typically much easier than adding the declaration to each page.
[1]
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.