microsoft.public.sharepoint.windowsservices.development

Retrieving a content field in a sandboxed webpart solution


I have to create a WebPart that will be within a PageLayout.
Depending of the page (that uses this pageLayout), the webpart will show different values.
So, I need to retrieve some page content as parameters.
The code bellow works for non-sandboxed solution:
string param1 = SPContext.Current.Item["Wiki_x0020_Page_x0020_Categories"].ToString(); How can I do the same in a sandboxed solution?
Thanks,




Written by Diogo Lopes 23/06/2011 16.05.08
Check some pics on this site!
25/05/2012 5.29.42