Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I have a portal developed in asp.net 2008. For this portal there are many many sites-one for each customer. All these sites are similar with same pages, controls on page and structure of folders. My problem is when i update code on one site, i need to update same code on all the sites.

Is there a way to share code between many websites. By sharing i mean to say can i share code behind (*.aspx.cs) files among sites. though i am able to share class library (data access class library) among all these sites by adding dll to bin folder.

Regards
Aijaz
Posted
Comments
Ranjan.D 29-Oct-13 6:24am    
Depends on how the design, In your case I'm not fully understood why did you went up in creating pages for each customers. You can convert some of the control to server side controls and reuse across.
S.Aijaz 30-Oct-13 0:07am    
i can reuse the controls, but what i need is i need to create a seperate site for every customer. everytime there is a change in code, i need to update same in all websites- that is nightmare for me. i want if i update change at one place it should reflect in all the websites

1 solution

The Part that is updating by all of your websites.
You should put that part in Web Service/WCF service and you just need to invoke the service(not by service proxy, but by cross domain call to that service).
Or use Web Api that is Quite easier compare to WebService/WCF service.

Here you just need to call that service that update data for all sites.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900