本文介绍了如何为asp中的每个用户创建一个单独的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个网站,我有一个标准,每个用户必须创建自己的网站.用户必须上传他/她的视频,照片和个人数据. 请为我提供帮助吗?
Hi , I am creating a website,i have a criteria that each user has to create his own site.User has to upload his/her videos,photos and personal data. Please do help for me?
推荐答案因此,您将需要唯一的用户ID.用户登录并检索用户ID-然后,您将需要使用该ID进行所有后续的上载,以便将视频\照片\数据全部与用户ID一起存储在数据库中.这将使您仅从数据库中检索用户的内容 想想Facebook \ MySpace,这就是将您定向到具有该用户内容的唯一页面的方式. 例如 1)网址类似... www.somesite?userid=123456 (或改写为www.somesite/dylanmorley) 2) 您查找用户标识,然后从数据库中检索该用户的所有信息(照片\视频\任何内容) 3)呈现页面! So you''re going to need a unique user ID. The user signs in and the user id will be retrieved - you will then need to use this ID for all subsequent uploads, so that videos \ photos \ data is all stored in the database with the user ID. This will let you retrieve content from the database just for a user Think of Facebook \ MySpace, this is how you are directed to unique pages with the content for that user. e.g 1) URL like... www.somesite?userid=123456 (or rewritten like www.somesite/dylanmorley) 2) You lookup the user id, then retrieve all information from the database for that user (photo\videos\whatever) 3) Render page!
更多推荐
如何为asp.net中的每个用户创建一个单独的网站?
发布评论