문제

I'm creating a List Definition for use on 2007, 2010 (Sandboxed), and 2010 (unrestricted) that will need custom new and edit forms; unfortunately the Sandbox specifically excludes custom application pages.

So far, the only possible solution I've found for this is Wictor's sandboxed web part page workaround. Are there any alternative methods? Additionally, is Wictor's method 2007-compatible?

도움이 되었습니까?

해결책

The deployment and implementation included in Wictor's article is only suitable for 2010 due to how the solution package would be deployed and how the custom web part is referenced in the custom page. In 2010 sandboxed webparts are referenced using the SPUserCodeWebPart wrapper which does not exist in 2007. In 2007, you can reference the web part directly (don't forget to register the namespace and assembly though).

If you need to target 2007, 2010 (sandbox/user solution) and 2010 (farm solution) then I would suggest you develop 2 different solution packages: one for 2007 and one for 2010 (sandbox/user solution). To cover the farm solution requirement, you should be able to use the sandboxed solution - as far as I am aware, you can install a sandboxed solution in the same way you would a farm solution.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top