用户角色 [英] User Roles

查看:68
本文介绍了用户角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想根据用户登录的角色在同一页面中显示不同类型的网格。

任何人都可以给我一个如何处理解决方案的提示。


再见。

解决方案

< blockquote>

你可以在你的网页中使用面板对象控件。


问候,

Ruel







我想显示不同类型的根据用户登录的角色在同一页面中使用不同cols的网格。

任何人都可以给我一个提示如何解决问题的方法。


再见。


Panel Cotrol是否会实现此功能。我只是想知道,如果我在一个面板中放置3个gridview控件,但是根据用户登录的角色,一次只显示1个。其他2个是否显示为空白或是否会被隐藏并显示为只有1个控制存在于该页面上。


如果我在面板中为基本用户放置一种类型的gridview,并在同一面板中为管理器放置第二个gridview控件并且如果管理器日志他会在面板中看到第一个gridview控件为空白。?


我是面板控件的新手。你可以指导我吗?



Panel Cotrol会实现这个功能吗?我只是想知道,如果我在一个面板中放置3个gridview控件,但是根据用户登录的角色,一次只显示1个。其他2个是否显示为空白或是否会被隐藏并显示为只有1个控制存在于该页面上。


如果我在面板中为基本用户放置一种类型的gridview,并在同一面板中为管理器放置第二个gridview控件并且如果管理器日志他会在面板中看到第一个gridview控件为空白。?


我是面板控件的新手。你能引导我吗?



我认为你不需要使用Panel Control来做这件事。



如何你定义了用户的角​​色吗?

您是否使用会员资格进行此操作?


您需要做的是根据用户的网格视图创建自定义数据源角色...

因此,当您为GridView生成数据源时,首先检查用户的角色并相应地生成数据源。


这有意义吗?


-Frinny


Hi,

I want to display different type of grid with different cols in a same page based upon the role of user logged in .
Can anybody give me a hint how to approach to the solution.

Bye.

解决方案

Hi,
you can use panel object control dragged in you web page.

regards,
Ruel




Hi,

I want to display different type of grid with different cols in a same page based upon the role of user logged in .
Can anybody give me a hint how to approach to the solution.

Bye.


Will Panel Cotrol achieve this functionality.? I am just wondering, if i place 3 gridview controls in one panel but only 1 will be displayed at a time based upon the role of user logged in. Will the other 2 appear as blank or will they be hidden and appear as if only 1 control exist on that page.?

Like if i place one type of gridview for basic user first in a panel and place second gridview control for manager next in a same panel and if manager logs in will he see the first gridview control as blank in the panel.?

I am new to panel control. Can u guide me in this?


Will Panel Cotrol achieve this functionality.? I am just wondering, if i place 3 gridview controls in one panel but only 1 will be displayed at a time based upon the role of user logged in. Will the other 2 appear as blank or will they be hidden and appear as if only 1 control exist on that page.?

Like if i place one type of gridview for basic user first in a panel and place second gridview control for manager next in a same panel and if manager logs in will he see the first gridview control as blank in the panel.?

I am new to panel control. Can u guide me in this?

I don''t think you need to use the Panel Control to do this.


How are you defining the Role''s of your user?
Are you using Membership to do this?

What you need to do is create a custom data source for your grid view based on the user''s role...

So, when you are generating the data source for the GridView, check the user''s role first and generate the data source accordingly.

Does this make sense?

-Frinny


这篇关于用户角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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