Solved

dynamic asp.net site creation

Posted on 2014-02-26
3
293 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
API v SOA 8 64
Calculating percentage 2 49
asp.net, radiobuttonlist, c# 3 69
ASP.NET generate check digit for ITF-14 and EAN-13 barcodes 4 34
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

751 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