Last post Oct 19, 2011 12:28 PM by UstesG
Oct 18, 2011 02:46 PM|UstesG|LINK
Let me clear the question up. I maintain about 10 custom sites, they all have a folder in common that generates dynamic pages. i was wondering how would I go about taking that folder and converting it into a dll that I can drop a control in all the projects
and call functions to create the pages from the dll. That way when I have a change I can make it in the dll and not have to go thru all the sites making the change.
Any ideas would be greatly appreciated..
Oct 18, 2011 03:16 PM|cubangt|LINK
Not trying to hijack your post, but i was also looking at doing the same thign for an upcoming project. I found a few links that helped explain the process of doing it, but i personally have not tried or begun on this yet..
Maybe they can help you before they help me..
Oct 18, 2011 03:45 PM|atconway|LINK
how would I go about taking that folder and converting it into a dll that I can drop a control in all the projects and call functions to create the pages from the dll.
I don't know of any streamlined or easier way of refactoring out that code in the folder into its own class library other than via brute force. By that I mean, create a new 'Class Library Project', copy the code over to the new projects directories, and
then in Solution Explorer for that project select 'Add -> Existing Item' and select all code files to add to the .dll. After building successfully, you can remove the files from the old project, and now reference the new class library project in all the other
project's that depend on it.
Oct 18, 2011 04:17 PM|UstesG|LINK
Thanks for the help guys, but I know how to create a dll. my question deals more with having that dll output the appropriate html and code-behind. Say I have a guestbook folder that has pages to view & edit a guessbook. Instead of creating this folder
in all the sites how would Ipackage it up into a dll to use in other websites?
Oct 18, 2011 04:29 PM|cubangt|LINK
Ahh, sorry misread / misunderstood the question. but personally would like to know also, i have had several projects with similar functionality that this would have come in handy to build it once and reuse.
Good luck with your project.
Oct 18, 2011 04:44 PM|cubangt|LINK
Just ran across this
http://msdn.microsoft.com/en-us/library/bb397866.aspx have you looked at aspnet_merge.exe
Oct 19, 2011 12:28 PM|UstesG|LINK
got it figured out. What i had to do was create a asp.net server control.
This is what got me started,
In this event ,
writer As HtmlTextWriter)
I build my control.