Although I personally would see no good purpose for doing so ...
I want this page as part of my custom control library so that it can be used by my custom controls. I'm not doing this for any single application. I don't want to copy an .aspx file around to any project that wants to use my custom controls. I don't want
to require modification of IIS configuration. I want it in the code library. I'm not talking about the App_Code folder of a web application. I'm talking about a class library. A seperate project all by itself. A .dll file that can be installed in the GAC of
our web servers and would be available to any web site that wants to use it without any hassles.
What's the content type for an .aspx page? I can't find one.
Setting true for the PerformSubstitution attribute is only for parsing other web resource urls in the embedded content - not executing code. From what little I've been able to find, it appears that you can only embed static files as resources.
Max Kukartsev
can't you just embed it as an ordinary resource
No. That's why I posted. I can't figure out how to get this to work.
How do charting controls do it? You drop in a .dll and use it - it creates charts dynamically. Ancient Chinese Secret? [:@]
jshepler
Participant
799 Points
176 Posts
Re: Embedding an aspx page as a WebResource
Sep 16, 2007 06:35 AM|LINK
I want this page as part of my custom control library so that it can be used by my custom controls. I'm not doing this for any single application. I don't want to copy an .aspx file around to any project that wants to use my custom controls. I don't want to require modification of IIS configuration. I want it in the code library. I'm not talking about the App_Code folder of a web application. I'm talking about a class library. A seperate project all by itself. A .dll file that can be installed in the GAC of our web servers and would be available to any web site that wants to use it without any hassles.
What would you suggest?
What's the content type for an .aspx page? I can't find one.
Setting true for the PerformSubstitution attribute is only for parsing other web resource urls in the embedded content - not executing code. From what little I've been able to find, it appears that you can only embed static files as resources.
No. That's why I posted. I can't figure out how to get this to work.
How do charting controls do it? You drop in a .dll and use it - it creates charts dynamically. Ancient Chinese Secret? [:@]
/js