sharepoint-2007

Query to get all items in a list including items in the sub folders in SharePoint

那年仲夏 提交于 2019-12-20 03:55:23
问题 I have a document library list. I created folders in that list and uploaded some files to those sub folders. How to get all these files which are in sub-folders in that document library list using SPQuery? 回答1: If you want to query all folders and sub folders of a list or document library, you have to define extra query options. If you are working with the object model you have to set the ViewAttributes property of the SPQuery object as follows: qry.ViewAttributes = "Scope='Recursive'"; 来源:

Sharepoint SPSite

不问归期 提交于 2019-12-20 02:15:09
问题 I am trying to create a spsite of object for sharepoint search but i am getting exception in production as website not found SPSite site = new SPSite("sitename"); ServerContext scon = ServerContext.GetContext(site); SearchContext srchcontext = SearchContext.GetContext(scon); Scopes sc = new Scopes(srchcontext); It throws exception site not found i have checked the name of site it exixts. Any Help?? 回答1: Check that you are building against the correct target. I.e. x86 vs x64. I get this error

Can I use .NET 4 with SharePoint 2007?

青春壹個敷衍的年華 提交于 2019-12-20 01:41:09
问题 I'm on a team that's currently building a MOSS 2007 based application (which relies on .NET 2), and we'd like to leverage the Entity Framework v4 (which relies on .NET 4). Is this possible? 回答1: No. The 4.0 version of .NET has a new CLR (4.0) etc., but SharePoint 2007 is only supported on CLR 2.0. Even SP2010 does not support .net 4.0 (yet). 回答2: Although I haven't tried, my guess is that it's not possible. In order to use .net 4.0 assemblies, the apppool running your moss site would have to

Sharepoint task list and Outlook sync

[亡魂溺海] 提交于 2019-12-19 11:34:09
问题 I am trying to sync Sharepoint task list with Outlook. When the users connect the task list to outlook, the task for all users are visible in outlook. Rather than applying filtering in Outlook, can I provide a filtering at the source itself? There are considerable number of users for my application, it wouldn't be good to ask all users to apply filters on their own. Any other suggestions? Thanks. 回答1: I`v asked the same question: Sync list with outlook only with items in current view.. In

Read/Write from/to Hierarchical Object Store - SharePoint 2007

旧街凉风 提交于 2019-12-19 04:40:09
问题 I've created a custom timer job which has requires some configurations to run. I'm trying to save the configurations as an SPPersistedObject in hierarchical object store. Hierarchical object store is saved in the SharePoint configuration database and hence I'm getting 'Security Error' while trying to save it with a SPWebApplication as the parent. I've even tried elevating the privileges but it dint help because it is just the application pool account for the current web application and it is

how to deploy web.config modifications in a Sharepoint web application?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 17:37:22
问题 I have a website in Sharepoint 2007. We use a wsp to deploy our projects. We can deploy dlls, usercontrols, features, but i don't know how to include new lines in the web.config. Which would be a possible way to make changes in web.config? Another thing, how can I include resources (resx) in the wsp? 回答1: Manually editing the web.config in a multi-server farm is a Bad Idea. Ensuring the web.config files stay in sync on each WFE will become a nightmare quickly. Using the

Sharepoint API - How to Upload files to Sharepoint Doc Library from ASP.NET Web Application

只谈情不闲聊 提交于 2019-12-18 11:57:52
问题 I am new to Sharepoint Server, Do we have any utility to upload files from ASP.NET application. Could you please provide your valuable answers? 回答1: You can write some custom code to do it. You could use the SharePoint API if you are on the same server or use WebServices Here is the sample code assuming that you know the url of the document library and you are uploading the document to the root folder. You will have to add Microsoft.SharePoint.dll as reference to your ASP.NET project using

Sharepoint API - How to Upload files to Sharepoint Doc Library from ASP.NET Web Application

和自甴很熟 提交于 2019-12-18 11:57:01
问题 I am new to Sharepoint Server, Do we have any utility to upload files from ASP.NET application. Could you please provide your valuable answers? 回答1: You can write some custom code to do it. You could use the SharePoint API if you are on the same server or use WebServices Here is the sample code assuming that you know the url of the document library and you are uploading the document to the root folder. You will have to add Microsoft.SharePoint.dll as reference to your ASP.NET project using

Sharepoint CMS vs UmbracoCMS

血红的双手。 提交于 2019-12-18 11:13:13
问题 I work for a large local government organisation who are about to embark on using SharePoint to replace our ageing intranet with an all-singing all-dancing collaborative site. The focus for the intranet will be replacing random files, content pages and documents that are spread across the organisation with a SharePoint installation which will magically bring order to all of this. The decision to use SharePoint for the intranet has already been made. The CMS we use on our public website also

Creating a custom Document Library in SharePoint

↘锁芯ラ 提交于 2019-12-18 03:47:08
问题 I have a document library in my SharePoint page and there are 10 documents in it. If User A is logged in I want him to only see 5 of those documents in that document library. How can I create some custom document library for this to work? I have MOSS installed. Thanks in advance! 回答1: You could configure different permissions on each document in the document library. Just select the "Manage Permissions" option on each item and break the permission inheritance from the document library level.