Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to create sub site folder automatically?

how to create sub site folder automatically?

Scheduled Pinned Locked Moved ASP.NET
helpcomtutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mangrovecm
    wrote on last edited by
    #1

    I have a problem, i hope that you help me to find the solutions: I have a shopping cart to buy wines(assume url is www.winery.com). I allow user to register to create him store on my site to buy and introduce wines. when user registered successfully, he will open him site using url: www.winery.com/. root url: www.winery.com user1: www.winery.com/user1 user2: www.winery.com/user2 .... How can you help me? Thank you and best regards vtkiet05 -- modified at 0:27 Thursday 23rd August, 2007

    S 1 Reply Last reply
    0
    • M mangrovecm

      I have a problem, i hope that you help me to find the solutions: I have a shopping cart to buy wines(assume url is www.winery.com). I allow user to register to create him store on my site to buy and introduce wines. when user registered successfully, he will open him site using url: www.winery.com/. root url: www.winery.com user1: www.winery.com/user1 user2: www.winery.com/user2 .... How can you help me? Thank you and best regards vtkiet05 -- modified at 0:27 Thursday 23rd August, 2007

      S Offline
      S Offline
      Saifi Hasan
      wrote on last edited by
      #2

      very easily u can do it using System.IO, directory.Create("complete_path") you must use MapPath to find the base path then append then call Directory.Create method

      Nobody is perfect i'm Nobody

      M 1 Reply Last reply
      0
      • S Saifi Hasan

        very easily u can do it using System.IO, directory.Create("complete_path") you must use MapPath to find the base path then append then call Directory.Create method

        Nobody is perfect i'm Nobody

        M Offline
        M Offline
        mangrovecm
        wrote on last edited by
        #3

        thank saifigr8, you mean after user registered, i must copy some template to folder has just created by user, because if i do not copy template to that folder, when user clicked url such as: www.winery.com/user1 the website will show. Is that right? vtkiet05

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups