开发者

How to create ASP.NET 4.0 pages contain controls under roles (Admin or not)

I want to build web pages using ASP.NET 4.0 (C#), and I want some开发者_如何学运维 controls to be appear for the admin role for example. And disappear for the normal user.

I suggested the (Multiview) standard control!

The question is: Is this method PERFECT? or there are many better methods to apply?


Unless some new way of doing this has been introduced in asp.net 4.0 then this is the correct way of doing this, it is exactly what the MultiView control was designed to do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜