Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a web site where use can register. I have to provide a feature that every user can make his page. Suppose user name is User1 and site URL is www.xxx.com so user url will be www.xxx.com/User1 how can I do that. I need any kind of idea Please help me.


Thanks in advance.
Posted
Updated 8-Jan-11 4:26am
v2
Comments
Yusuf 8-Jan-11 10:26am    
corrected some typos

Try Personalization and User Profiles in ASP.NET 2.0[^]

Use URL rewriting[^]

Hopefully enough to get you started...

You could consider using an existing CMS. Here is a list:
Open Source Content Management Systems (CMS) in C#[^]

umbraco and DotNetNuke are to my knowledge well supported, and comes with a ton of functionality ...



Regards
Espen Harlinn
 
Share this answer
 
v3
Firstly, it's a bad idea to do it exactly like that anyway: Instead set up a folder off your root called (say) "Users" and put the files in there.
If you just put user files in your root:
User: "User1"
File: "User1.html" or "user1.aspx"
Then what happens when someone logs in as user "Login" or "Default"?

If you use a separate directory, then that should work a bit more securely.

Next The way I would do it (being the suspicious type I am) is not to provide them with direct access to the server file structure anyway: To load a file, paste it into a text box, and then your software files that under the user name with the appropriate extension.

I would also consider keeping each user file in a separate directory (under "users") called his username, with a custom web.config that allows access to you and that user only - so they can't faff about with each others files.
So you would end up with:
\                             All your files for the site
   users                      Folder
      User1                   Folder
         web.config           Limit access to you and User1
         User1.html           The file they loaded
      User2                   Folder
         web.config           Limit access to you and User2
         User2.html           The file they loaded
      ...


[edit]I forgot the web.configs...[/edit]
 
Share this answer
 
v2
Comments
Yusuf 8-Jan-11 10:30am    
We have a web application where there are hundreds of thousands of users. With your approach we will need to maintain, that much individual file and very large web config file. Instead we rely on few pages, database and personalization.
fjdiewornncalwe 8-Jan-11 13:10pm    
@Yusuf: Who's question is this.... Is it your's created with a puppet account, or do you work with the OP?
I think there are serious issues with the architecture being proposed by the OP in the first place. If there are "hundreds of thousands" of users, then the resources to create a proper database for user information would be there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900