Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

dynamic asp.net site creation

Posted on 2014-02-26
3
Medium Priority
?
306 Views
Last Modified: 2014-03-20
Hi all,

I am looking at implementing a subscription site, whereby the user will sign up and the site will automatically create a database driven site in IIS under a subdomain.

After they sign up a database will be copied from a parent blank db (or from as script?) and the site will be created from a parent blank site.

The folder structure would be as follows;

<Parent Dir>
- <Top Level Site>
- <User Site 1>
- <User Site 2> etc

Now there may be some bespoke configuations made to each site, hence why the parent blank site would be copied. This doesnt help however when the parent site is updated as the changes would not iterate down.

Is it possible (as joomla does), to operate an override situation?. I.e. if the file doesnt existing in the user directory it falls back to the Parent directory?

Any input on this would be grateful.
0
Comment
Question by:flynny
  • 2
3 Comments
 
LVL 25

Expert Comment

by:SStory
ID: 39900332
Well, you could create a site, or you could just write the database and pages so that they look like individual sites, but are only one.  You could do the URL rewriting so that something like:
whateversite.com?company_id=1
is rewritten on the fly to say
whateversite.com/company_name

and have them think they have their own site and every hit to the DB in would know which company id to use.  That is one option.  Otherwise in order to secure each site from the other it would seem to me that it would be done at the OS level, but I could be wrong.
0
 

Author Comment

by:flynny
ID: 39905922
Hi,

Sorry I missed you comment.

Utilising your method as mentioned above, how would I handle any changes to templates etc?

For example if the site were to be customised? (i.e. a masterpage tweaked, etc).

Does that make sense :S
0
 
LVL 25

Accepted Solution

by:
SStory earned 2000 total points
ID: 39917467
Well, I don't know exactly what your db is going to do. Assuming you are doing this from scratch and not using Joomla, etc, couldn't you have SQL Server or MySQL back end and every table have a company_ID field and by that you get just the data for that company?  Also one of the tables could have the filename of the master page for that company in a folder of master pages for all companies if need be and it could default to the default master page for companies that don't need to deviate??
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question