应用程序页面的SharePoint个性化 [英] SharePoint Personalization With Application Pages

查看:81
本文介绍了应用程序页面的SharePoint个性化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在部署到SharePoint的ASP.NET应用程序上以应用程序页面(部署到_layouts的单独应用程序和aspx页面)上实现个性化(WebPartManager和WebParts).

I am trying to implement personalization (WebPartManager and WebParts) on ASP.NET application deployed to SharePoint as application pages (Separate application and aspx pages deployed to _layouts).

我想利用SharePoint个性化提供程序,因此我可以将提供程序连接到ASP.NET应用程序中的WebPartManager.但是,SharePoint似乎调用SPRequest对象来执行这些任务,并且没有提供个性化的提供程序.

I'd like to take advantage of SharePoint personalization provider, so I can just wire up the provider to WebPartManager in the ASP.NET application. However SharePoint seems to call SPRequest object to perform these tasks, and does not have a provider for personalization.

我尝试的第二个选项是在这些页面上使用SharePoint WebPartManager,但是它似乎不起作用,因为应用程序页面不是SharePoint内容数据库中的上载页面,因此当我尝试添加/个性化Webpart时收到错误消息.

The second option I tried was to use SharePoint WebPartManager on these pages but it does not seem to work because application pages are not uploaded pages inside the SharePoint content database, so I receive errors when I try to add/personalize a webpart.

有人知道一种在应用程序页面上利用SharePoint个性化的干净方法吗?

Does anyone know a clean way to utilize SharePoint personalization on application pages?

推荐答案

通常,应用程序页面不绑定到特定站点.然后,Webpart Manager会将个性化值与页面所在的站点中的页面保持在一起.

Normally, application pages are not tied to a specific site. And the webpart manager keeps the personalization values with the page in the site the page comes from.

通过使用ASP.NET个性化,您可能可以完成您想做的事情.但是,然后您必须使用[我认为]默认要使用SQL Server的ASp.NET个性化基础结构.

You can probably accomplish what you are trying to do by using ASP.NET personalization. But then you have to use the ASp.NET personalization infrastructure which [I think] wants to use SQL Server by default.

当然,这样做的缺点是您将实现2种个性化基础结构.这可能意味着部署上的麻烦.

Of course, the drawback to this is that you will have 2 personalization infrastructures implmented. This could mean deployment headaches.

罗杰·威廉姆斯 富兰克林实验室

Roger Williams Franklin Laboratory

这篇关于应用程序页面的SharePoint个性化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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