Solved

dynamic asp.net site creation

Posted on 2014-02-26
3
300 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

627 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