473,320 Members | 2,162 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,320 software developers and data experts.

Changing stylesheets

I'd appreciate any help possible.
I have a number of different stylesheets. All have
identical elements. I only want to use one at a time, but
want the system administrator to be able to choose which
one to apply. I thought that I could hard code the pages
to a generic stylesheet and using file.copy VB statements,
overwrite the current file with the new one.
Unfortunately I am getting an unauthorised access error
when I try this.

Can i get around this (after all, I can perform the task
manually in windows explorer) or any other ideas???

many Thanks

Regards

Adrian
Nov 17 '05 #1
1 1082
Make sure that the user that runs aspnet.exe worker thread
has permissions to write and modify the file.
-----Original Message-----
I'd appreciate any help possible.
I have a number of different stylesheets. All have
identical elements. I only want to use one at a time, butwant the system administrator to be able to choose which
one to apply. I thought that I could hard code the pages
to a generic stylesheet and using file.copy VB statements,overwrite the current file with the new one.
Unfortunately I am getting an unauthorised access error
when I try this.

Can i get around this (after all, I can perform the task
manually in windows explorer) or any other ideas???

many Thanks

Regards

Adrian
.

Nov 17 '05 #2

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

Similar topics

6
by: Jeff Thies | last post by:
I have a number of elements of "some-class". I'd like to change the styles of some-class: from ..some-class{color: red; display: block} to
2
by: wjbell | last post by:
I have a piece of javascript I need to modify. Right now it changes a stylesheet in the document between style.css and no_indent.css. These are in the head of my document: <link rel=stylesheet...
3
by: DJ WIce | last post by:
Hi, I have this situation: I have a main page with content and an IFRAME on it. The IFRAME has it's own style sheet and the body of that uses a class: <body class="IFbody"> How can I...
3
by: Geoff Soper | last post by:
I'm trying to dynamically change the cursor of a couple of maps over an image. Basically the image is in an online photo system where there is a rotate mode. In this mode clicking on the left or...
34
by: The Good Son | last post by:
I'm trying to get my head around a problem that has me baffled. The following element: #wrapper {border:1px solid #000;background:#fff;} Renders as expected when using this DTD: ...
5
by: Andrew Poulos | last post by:
If I have an external stylesheet that is @imported into my page and it has an element that looks like this: * html td { font-style: italic; } how can I use javascript to change the font...
2
by: Pawe³ | last post by:
Is there any way I can dynamically (taking advantage of JavaScript) change the properties for classes defined in CSS styles?? Let say there's a CSS class ".regtex" and it forces the browser to...
5
by: Andrew Poulos | last post by:
I'm trying to change a style in a stylesheet. The following code works in FF, MZ, and IE6 but IE 5 gives the error of "invalid procedure call or argument": var oStyleSheet =...
2
by: Valerian John | last post by:
Hi, folks: I am looking for a way to switch stylesheets for our webforms. We want to have a default stylesheet and then allow the user to pick from a list of pre-defined stylesheets. The user's...
3
by: 2good2b | last post by:
Is there a way to change the background color dynamically, when the color is defined at a CSS stylesheet? (tried document.bgcolor and this.style.background-color) Thanks
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.