473,378 Members | 1,489 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.

Read CSS in VB.net code

Is there an object that I can instantiate to read a CSS? We have some
webpages that we build dynamically in VB.net code and apply such things as
color, background color, font etc. to directly in the code. I would like to
be able to read a CSS and pull out what I need from that. Is there a way to
do this?
Thanks!
Steve
Mar 13 '06 #1
3 1510
i dont think there is but it'd be nice if there was one (hint, hint)!

Can you use XML to define those css style rules?

"steve" <sm*****@iasystems.com> wrote in message
news:eB****************@TK2MSFTNGP09.phx.gbl...
Is there an object that I can instantiate to read a CSS? We have some
webpages that we build dynamically in VB.net code and apply such things as
color, background color, font etc. to directly in the code. I would like
to be able to read a CSS and pull out what I need from that. Is there a
way to do this?
Thanks!
Steve

Mar 13 '06 #2
Steve,

As you can write a file, than in my opinion can you as well always read a
fill. What is it we miss?

Cor
"steve" <sm*****@iasystems.com> schreef in bericht
news:eB****************@TK2MSFTNGP09.phx.gbl...
Is there an object that I can instantiate to read a CSS? We have some
webpages that we build dynamically in VB.net code and apply such things as
color, background color, font etc. to directly in the code. I would like
to be able to read a CSS and pull out what I need from that. Is there a
way to do this?
Thanks!
Steve

Mar 14 '06 #3
I was wondering if there were a way to read a CSS via code using an object.
I know I can parse it out myself, but that's open to a lot of errors. I was
hoping there were some way to instantiate an object, open the CSS with it
and then gain access to a collection of styles or something like that.

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uX**************@TK2MSFTNGP10.phx.gbl...
Steve,

As you can write a file, than in my opinion can you as well always read a
fill. What is it we miss?

Cor
"steve" <sm*****@iasystems.com> schreef in bericht
news:eB****************@TK2MSFTNGP09.phx.gbl...
Is there an object that I can instantiate to read a CSS? We have some
webpages that we build dynamically in VB.net code and apply such things
as color, background color, font etc. to directly in the code. I would
like to be able to read a CSS and pull out what I need from that. Is
there a way to do this?
Thanks!
Steve


Mar 14 '06 #4

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

Similar topics

0
by: munif | last post by:
i wnat write a C++ program that would read from a CD and display information about files and folders in the given CD In simple words you would be performing a simple (ls -l) or (DIR /S) on the...
3
by: Koen | last post by:
Hi, first of all, the machine setup server 1: - UDB2 7.2.5; COUNTRY=1, location = US, IBM1250 codepage - Locale: US English; Regional Settings: English; Keyboard: Dutch; decimal separator: ....
3
by: collinm | last post by:
hi i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port void ledDisplayExist() { char msg={'\0', '\0', '\0', '\0',...
9
by: ferbar | last post by:
Hi all, I'm trying to read from the txt file 'ip.packets.2.txt' using the read function. It seems everything ok, but I get a -1 when executing >>bytesr = read(fdo1, bufread, 2); The 'open'...
6
by: BBM | last post by:
I have an object that has a fairly complex construction sequence, so I have written a dedicated "factory" class that invokes the constructor of my object class (which does nothing but instantiate...
8
by: a | last post by:
I have a struct to write to a file struct _structA{ long x; int y; float z; } struct _structA A; //file open write(fd,A,sizeof(_structA)); //file close
1
by: Jose Reckoner | last post by:
I'm running python 2.3 on Windows XP. Anyone have a quick small script to convert .DT1 and .DEM data to ASCII or some other format? I don't need a viewer. Thanks!
7
by: Tracks | last post by:
I have old legacy code from vb5 where data was written to a file with a variant declaration (this was actually a coding error?)... in vb5 the code was: Dim thisdata as integer Dim thatdata...
4
by: Jim | last post by:
I have the following piece of code: Directory.CreateDirectory(myDir); DirectoryInfo lDir = new DirectoryInfo(myDir); lDir.Attributes = FileAttributes.Normal; When this code runs, my directory...
6
by: arnuld | last post by:
This works fine, I welcome any views/advices/coding-practices :) /* C++ Primer - 4/e * * Exercise 8.9 * STATEMENT: * write a program to store each line from a file into a *...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.