S
Sam
Hi all
I'm looking for a way to detect the background color of my internal webpage
through a stylesheet. And so far, the only solution I find is to open the
styles.css file and parse the BACKGROUND-COLOR field. The problem I'm
having is that I don't know the exact absolute path of the stylesheet file
(styles.css) to access it using stream reader. I have tried to use the
"Path.GetFullPath" method of the system.IO to get the absolute path but this
method does not seem to return the correct path. It does with the Window
app.
1. Is there a way to open this file based on relative path of the web
current directory
2. Does anyone have any other way to find BACKGROUND-COLOR setting?
Thank You
Sam
I'm looking for a way to detect the background color of my internal webpage
through a stylesheet. And so far, the only solution I find is to open the
styles.css file and parse the BACKGROUND-COLOR field. The problem I'm
having is that I don't know the exact absolute path of the stylesheet file
(styles.css) to access it using stream reader. I have tried to use the
"Path.GetFullPath" method of the system.IO to get the absolute path but this
method does not seem to return the correct path. It does with the Window
app.
1. Is there a way to open this file based on relative path of the web
current directory
2. Does anyone have any other way to find BACKGROUND-COLOR setting?
Thank You
Sam