如何为asp.net中的每个用户创建一个单独的网站?

编程入门 行业动态 更新时间:2024-10-28 04:28:15
本文介绍了如何为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中的每个用户创建一个单独的网站?

本文发布于:2023-06-03 06:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/470190.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:创建一个   何为   用户   网站   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!