如何在ASP.NET网站登录后创建用户配置文件页面 [英] How to create user profile page after login in an ASP.NET website

查看:97
本文介绍了如何在ASP.NET网站登录后创建用户配置文件页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为患者医疗保健创建一个网站项目。用户登录后,我想创建一个新页面,他可以访问他的所有记录。如何在ASP.NET中做到这一点?如何管理患者,医生和管理员等用户角色?病人只能访问他的记录并向医生发送信息.Admin有很多功能,例如编辑记录和所有。我试过制作登录页面。但之后不知道该怎么办



那么,如何管理用户的角色??????如何为每位患者制作个性化页面?

I am creating a website project for patient healthcare.After user login,I want to make a new page where he can access all his records and all. How to do that in ASP.NET?? How do I manage user roles such as patient,doctor and admin????? Patient can only access his records and send messages to doctor.Admin has lots of capabilities such as edit records and all.I have tried making login page.But dont know what to do after that

So, How to manage roles of users?????? How to make personalised page for each patient?

推荐答案

最简单的方法是检索登录的角色用户喜欢 Patient Admin 。要存储用户角色,您可以向用户表添加新列或创建两个新表,如...

  • UserRole表( UserId RoleId
  • 角色表( RoleId RoleName
The easiest way would be retrieving the Role of Logged In User like Patient or Admin. To store the Role of User, you could add a new Column to the User Table or create two new Tables like...
  • UserRole Table (UserId, RoleId)
  • Role Table (RoleId, RoleName)


这篇关于如何在ASP.NET网站登录后创建用户配置文件页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆