HighTechTalks DotNet Forums  

Embedding a CSS file in an assembly - can you access it from a Page?

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Embedding a CSS file in an assembly - can you access it from a Page? in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
thfeldman67@gmail.com
 
Posts: n/a

Default Embedding a CSS file in an assembly - can you access it from a Page? - 01-03-2008 , 10:12 AM






I've been building a server control in an assembly and I want to embed
all the related resource files (.js, .css and .gif) within the
assembly DLL (along with the ASP.NET code). I have been able to
reference all these embedded resource files from the within the server
control class.

However, I have a base class that inherits from System.Web.UI.Page
that I will use as my base web form class. I want to be able to put a
CSS reference based on an embedded CSS resource in that base class
rather than the server control class - but I cannot get that to work.
Is there a way to do this?

I've been searching MSDN, Google, etc. for related documentation - it
appears to me that I'm doing everything right (I put my reference in
the AssemblyInfo.vb as I have with the other files, I set the Build
Action on the css file to Embedded Resource, I build a link reference
just as I am doing in my server control, etc.) Is there even a way to
do this - or does it only work from within a server control class
method?

Thanks in advance for your help ...

Trevor Feldman
BD

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.