这取决于用户在asp.net中显示内容 [英] display content depending on which user in asp.net
本文介绍了这取决于用户在asp.net中显示内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将使用在我的asp.net应用程序四种形式将数据输入到数据库中4目前存在的输入数据的用户。
i have four differnet data entry users that will be using four different forms on my asp.net application to enter data into a database.
我现在有Windows身份验证,这样用户不会看到其他用户的形式。
i currently have windows authentication so that the user will not see the other user's form.
我的问题是我怎么可以把所有的四组相同的链接的http://网站.... Default.aspx的并有它具体的内容显示用户?
my question is how can i send all the four groups the same link http://website....default.aspx and have it display content SPECIFICALLY for that users?
推荐答案
您有几种选择:
- 有你的链接发现登录的用户,并将其转发到不同的页面。
- 动态地构建你希望他们根据登录的用户看到的表单。
- 的(注意:不要使用本)的使用CSS来隐藏不希望他们看到的表单元素。
- Have your link discover the logged-in user and forward them to a different page.
- Dynamically build the form you want them to see based on the logged-in user.
- (Warning: don't use this) Use CSS to hide the form elements you don't want them to see.
不知道更多关于这个问题,这是最好的答案我可以给。
Without knowing more about the problem, this is the best answer I can give.
这篇关于这取决于用户在asp.net中显示内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文