Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I need your great help in developing a new Asp.net project.

I have 3 websites Site1,Site2,Site3 running on their own Code base's & Databse's.

All are Job portals having 3 roles i.e Admin,Employer,Job seeker.

Now my requirement is to have a Single code base,Single Databse for all the sites.

Means all the content and state specific date should come dynamically according to the URL requested.

What is the best way to achive this and if I maintain same database then how to change the existing schema .

If I have Single database will the performance goes down.

Please suggest me the best approach .

Thanks in advance.
Posted

1 solution

I working in some thing like this
and this is my method:
you can give for example id for each site and if these three sites for
example in different server you can set the id of the site on the web config
and when you requested for example the url of site 1 load your data from db according to the siteid in the config file

you will make the site id is the filteration method when requesting any url
for exampl http://me.com/viewpage.aspx?siteid=1
 
Share this answer
 
Comments
sandeep sangshetty 1-Dec-10 1:38am    
Thanks for ur reply.

I want to have the siteIds in sepreate table for the future sites.
So in order to refer the state specific data i need to add the new column 'SiteId' in each and every table ,But while retrieving it may take lot of time.
This may degrades the performance of the site.

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