Home All Groups Group Topic Archive Search About

How to embed xsl-stylesheets in resx-files?

Author
6 Jan 2006 1:29 PM
Andreas Zita
Hi

I have a 2.0-app which contains some xsl-files. I would like to embed these
files in the deployed sites assembly. Previously I would mark the files as
embedded resource and then retrieve them when needed using:

   Assembly assembly = Assembly.GetExecutingAssembly();
   XmlTextReader reader = new
XmlTextReader(assembly.GetManifestResourceStream("..."));

How can I do this in ASP 2.0 ???

I guess I would use .resx files in App_*Resources but it doesnt seem to
allow embedding xsl-files?? Im confused ...

/Andreas

Author
6 Jan 2006 1:33 PM
Edwin Knoppert
See my other reply

Show quoteHide quote
"Andreas Zita" <andreas.z***@gmail.com> schreef in bericht
news:e$mW0UsEGHA.3700@TK2MSFTNGP15.phx.gbl...
> Hi
>
> I have a 2.0-app which contains some xsl-files. I would like to embed
> these files in the deployed sites assembly. Previously I would mark the
> files as embedded resource and then retrieve them when needed using:
>
>   Assembly assembly = Assembly.GetExecutingAssembly();
>   XmlTextReader reader = new
> XmlTextReader(assembly.GetManifestResourceStream("..."));
>
> How can I do this in ASP 2.0 ???
>
> I guess I would use .resx files in App_*Resources but it doesnt seem to
> allow embedding xsl-files?? Im confused ...
>
> /Andreas
>
>

Bookmark and Share