如何使用 ASP 会员资格来控制网站上应加载哪些小部件?
我们公司使用 ASP 会员资格作为我们 Silverlight 网站的密码保护。我想要的是不同的用户看到不同的小部件(即,某些小部件不会加载到某些没有权限的用户)。这意味着,当人们根据自己的权限访问 silverlight 网站时,如何控制应将哪些小部件加载到网站上。这可以通过 ASP 会员资格来实现吗?或者我应该如何实现?
非常感谢您提前的帮助。
魏
Our company use ASP membership as password protection for our Silverlight websites. What I want is that different user see different widgets (i.e., some widgets are not loaded to some users who don't have privilege). This means, how can I control which widgets should be loaded to the website when people access the silverlight website based on their privilege. Can this be fulfilled by ASP membership or how should I fulfill it?
Many thanks for your help in advance.
Wei
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 RIA 服务在 silverlight 中访问 asp.net 会员资格。您必须创建会员资格 DTO,然后您可以将所有会员资格提供商实体一直传递到 silverlight。
http:// leeontech.wordpress.com/2009/03/25/using-aspnet-membership-and-profile-providers-with-ria-services/
http://blogs .msdn.com/b/kylemc/archive/2010/05/10/using-asp-net-membership-in-silverlight.aspx
you can access asp.net membership in silverlight using RIA services. you will have to create Membership DTO and then you can pass all membership provider entities all the way to silverlight.
http://leeontech.wordpress.com/2009/03/25/using-aspnet-membership-and-profile-providers-with-ria-services/
http://blogs.msdn.com/b/kylemc/archive/2010/05/10/using-asp-net-membership-in-silverlight.aspx