帮助为每个用户创建动态页面 [英] help in creating the dynamic page for each user

查看:52
本文介绍了帮助为每个用户创建动态页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站中,我有两个角色,一个是管理员,另一个是用户.

假设我们有两个用户,他们的订单详细信息不同.当用户使用其用户名和密码登录时.他有自己的带有欢迎插孔的页面(例如,杰克为用户名)(只有欢迎插孔,页面为空).现在,我想在登录页面的用户上放置一个链接控件.这样每个用户都可以动态查看他从数据库中制作的详细订单明细.

请帮助我,我完全陌生.


请给我一些编码示例.

in my web i have two role one for admin and others for users.

lets say we have two users with different orders details. when the user login using his username and password. he have his own page with welcome jack(say jack a user name) ( only have welcome jack and page is emply). now i want to put a link control on that users loged in page . so that everyuser just can b able to see the particulars orders detail he made from the database dynamically.

please help me i am completly new in it.


Pls give me some coding example

推荐答案

您不需要为每个用户都创建动态页面.您只需要为所有用户创建一个页面,即可根据登录的用户ID在其中显示订单详细信息.您需要从数据库中提取数据并将数据绑定到页面中的相应控件.

您应该了解ASP.NET中数据访问的基本知识,可以在此处 http://www开始逐步教程. .asp.net/data-access/tutorials [^ ]
You don''t need to create dynamic pages for each an every user. You just need to create on single page for all the users where you show the order details on the basis of logged-in user id. You need to pull the data from the database and bind the data to the appropriate controls in the page.

You should understand the basic of the data access in ASP.NET, you can start the step by step tutorials here http://www.asp.net/data-access/tutorials[^]


这篇关于帮助为每个用户创建动态页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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