SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Apr 2004
    Location
    canada
    Posts
    274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom webpage With Editing Capabilities

    I am trying to build a site that allows the user to customize the content that is shown on their page. I'm wondering what is the best way to handle this:

    HERE'S HOW IT WORKS:
    1) Each page owner gets their own directory (www.example.com/bob)
    2) Bob (the owner) can log into his account and access his Admin area where he can edit the text that appears on his home page (www.example.com/bob/Admin/editMyProfile.aspx)
    3) Once Bob saves his changes the content is public on his main site (www.example.com/bob)
    4) bill also has the same control over his webpage (www.example.com/bill)

    I have created a SQL 2008 database that holds the information for Bob and Bill and created uniqueID's for each. What is the best way to display these custom pages and show the correct information with out using a URL parameter (index.aspx?id=Bob)? I want the URL/content to be accessible via the DIR (/bob) only.

    Is it best to create a table for each custom page owner or store everything in one table and pull the info based on the uniqueID?

    How do you connect a (/bob) with the uniqueID?

    Thanks in advance!

  2. #2
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Routing

    I see no good reason to make a new table for each user.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •