Posted By: PerfectPhase | Aug 7th @ 3:01 AM
page 1 of 1
Comments: 1 | Views: 736
PerfectPhase
PerfectPhase
"This is not war, this is pest control!" - Dalek to Cyberman

I have a web app with a lot of ascx controls in it that I need to refactor quickly so I can reuse them in other projects.

As I do not have time to to rewrite these into custom controls for the moment, I was wondering what the best approach is for moving these controls into a library projects so that I can compile them and just reference the dll.

Cheers,

Stephen.  
stevo_
stevo_
Casablanca != Manchester
http://www.codeproject.com/KB/aspnet/ASP2UserControlLibrary.aspx

Seems like a reasonable idea, as he points out.. LoadControl relies on finding the actual ascx file.. but if you embed the ascx into the assembly, and then create a virtual path provider to intercept a specialized url.. you can use LoadControl to load against that url, which in turn streams the ascx out for LoadControl to use..

Also, the comments at the bottom have another suggestion for a small framework on code plex that can handle this..
page 1 of 1
Comments: 1 | Views: 736