A
Axel Dahmen
Hi,
in order to add user dependant style sheets to my HTML pages I'd like to
create an ASPX wrapper page which reads an HTML page, adds a currently
selected style sheet and then outputs the rest of the page.
But I couldn't find any class helping me to read HTML as a string enabling
me to parse it and to search in it for the header section to inject my style
element. Using HttpWebRequest seems quite awkward to me.
Can someone please enlighten me on how this can be done? Plus I don't want
to assume a particular encoding to my HTML pages. The method supposed should
have no problems with varying HTML encoding (UTF8 etc.).
TIA!
Axel Dahmen
in order to add user dependant style sheets to my HTML pages I'd like to
create an ASPX wrapper page which reads an HTML page, adds a currently
selected style sheet and then outputs the rest of the page.
But I couldn't find any class helping me to read HTML as a string enabling
me to parse it and to search in it for the header section to inject my style
element. Using HttpWebRequest seems quite awkward to me.
Can someone please enlighten me on how this can be done? Plus I don't want
to assume a particular encoding to my HTML pages. The method supposed should
have no problems with varying HTML encoding (UTF8 etc.).
TIA!
Axel Dahmen