Last post Aug 12, 2010 02:02 AM by rvdwerf
Aug 11, 2010 04:11 AM|rvdwerf|LINK
I have a question which does bugger me for awhile now. The situation is as following:
In my asp.net web project i have everything fully seperated mainly its seperated in a way as a framework for more then one specific bussiness application.
My current situation i have a few projects for the framework functionality and a web application project for the framework pages and the business specific pages. But here i face a problem where i want those two seperated from each other. So basically i want
to reuse later on the framework web application which gets referenced by the bussiness application to let this bussiness application have the login page and the other functionality which the framework application contains.
Is this possible to have seperated projects? it will make the architecture of the project much more clear
Thanks for the time reading this and possible directions!
Aug 11, 2010 08:58 AM|integrasol|LINK
Well, I guess there are different options, but I would keep your framework functionality in a Class Library project and use this project either directly in your Web Application project, or through one or more WCF Services that use the Class Library project.
Aug 11, 2010 10:18 AM|rvdwerf|LINK
Thanks for answering
Its not really what i mean but i was a bit unclear :-)
Bassically i want my framework Webforms in a different project so i could reuse it in other business applications. So i can develop one framework instead copy pasting this structure in every project.
What i mean with webforms is the logins / errorcontrol forms and masterpages.
And with bussiness project i want only the forms that matters to that specific project so that project doesnt get the login forms but instead gets it from the framework project.
Is this possible to achieve?
Aug 11, 2010 12:51 PM|integrasol|LINK
Well, I haven't actually tried this, but from what I do know about ASP.NET compilation my guess is that you would need to use a VirtualPathProvider (http://msdn.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx)
to pull off something like this.
http://support.microsoft.com/kb/910441. Mind you, I could be wrong and there may be other ways.
Aug 12, 2010 02:02 AM|rvdwerf|LINK
Thanks for pointing that out it looks like something which might make it possible.