moss

In a meeting workspace get all agenda items from a list programmatically

一曲冷凌霜 提交于 2019-12-04 15:26:33
I want to get all items from a specific list in recurring meeting workspace. I tried to execute the following CAML: <Query> <Where> <IsNotNull> <FieldRef Name='ID' /> </IsNotNull> </Where> </Query> But it only displays data for the upcoming meeting. However when I open list, from actions menu I can choose to display data from all meetings. That makes me think it is possible. I know I can convert the list to series items so they appear in all meetings, but it is not that I want. Yeehaaw! Finally I found a solution! SPQuery class has a property MeetingInstanceId , which one you can assign a

Sharepoint, ajax and page title

左心房为你撑大大i 提交于 2019-12-04 13:04:05
I have strange problem with sharepoint and ajax functionality. We have an UpdatePanel placed inside webpart. When partial postback occurs, page title gets missing. We have found that temporary partial solution is to write title element into one line and not use any spaces or controls inside it..not even a literal control. But we need some way to provide sommon title for all pages, so title would look like this: My default title - Current page title Any ideas how to solve this? I don't have a reference to the newsgroup post, but this is a known problem with publishing pages, as drax mentioned.

get users by group in sharepoint

寵の児 提交于 2019-12-04 11:26:56
问题 can anyone show me how to get the users within a certain group using sharepoint? so i have a list that contains users and or groups. i want to retrieve all users in that list. is there a way to differentiate between whether the list item is a group or user. if its a group, i need to get all the users within that group. im using c#, and im trying to do thins by making it a console application. im new to sharepoint and im really jumping into the deep end of the pool here, any help would be

Programmatically add user permission to a list in Sharepoint

痴心易碎 提交于 2019-12-04 11:24:51
问题 How do I programmatically add user permissions to a list in Sharepoint? I want to add the permission "Contribute" to a user or group for a certain list. I'm using C#. 回答1: You can do this using the SPRoleAssignment object, e.g. // Assuming you already have SPWeb and SPList objects ... SPRoleAssignment roleAssignment = new SPRoleAssignment("dom\\user", "user@dom", "user", "some notes"); SPRoleDefinition roleDefinition = web.RoleDefinitions.GetByType(SPRoleType.Contributor); roleAssignment

Customizing breadcrumb in sharepoint publishing site with variations

ぐ巨炮叔叔 提交于 2019-12-04 10:28:11
I have a Sharepoint publishing site with variations. The breadcrumb by default shows this: Variation Root > English Site > Some Page What I want to display is: "Home" > Some Page, where Home points to the English site root. Is there a way to achieve this withouth creating a custom server control to do that? If you know the exact number of levels you can use a SiteMapPath like: <asp:SiteMapPath runat="server" ParentLevelsDisplayed="1" /> Otherwise the SiteMapPath always goes direcly agains the SiteMapProvider currently in use and you can probably hook into the rendering of the SiteMapPath a do

Is it possible to use ELMAH in a SharePoint environment?

南楼画角 提交于 2019-12-04 09:25:30
问题 Has anyone integrated ELMAH into their SharePoint environment? I suppose it's possible as it's all ASP.net, but I just wondered if anyone had done it and if there's a walk through on how to achieve it? 回答1: We use ELMAH in our MOSS 2007 environment. Since ELMAH uses HttpHandlers and is set up via the web.config, activating it was a cinch. Just add the ELMAH stuff to the web.config for the application that you're running inside SharePoint. If you want ELMAH to report errors at a level higher

How do I determine the disk size of a SharePoint list?

江枫思渺然 提交于 2019-12-04 03:58:43
问题 I have a list with roughly 5500 items, and I would like to find out the size on disk. Is there some way I can do this? I don't mind running a query in the database, if necessary. 回答1: If you enable a site quota, an option under site settings appears called Storage Space Allocation . When you go to set a quota in the Central Administration, the page will tell you what the current storage used is so you can have an idea before there. Once you get to the Storage Space Allocation report, you can

Regarding MOSS or WSS 3.0, What parts of the API might have been implemented better?

只愿长相守 提交于 2019-12-03 16:15:58
Such as: Sealed Methods you might have liked to extend Exceptions thrown are more vague than is helpful Elimination of Connected Content which was a major feature in MCMS 2002 HTML is stripped from fields when stored and returned. No easy option to work around this problem Creating an SPWeb takes an eternity. Nonexistant migration path from MCMC 2002 I wish that the Sharepoint object model was purely managed code. Although having .NET wrappers is convenient, having to worry about disposing the many objects that implement IDisposable is a pain. It's so easy to run into memory issues when

Programmatically insert a List as a webpart in a webpart page in WSS 3.0

与世无争的帅哥 提交于 2019-12-03 10:22:37
问题 I tried searching on the net to programmatically insert a List as a webpart in a webpart page but was not lucky enough. Any thoughts or ideas how i could Programmatically insert a List as a webpart in a webpart page Many Thanks! 回答1: First add these using statements. using Microsoft.SharePoint; using Microsoft.SharePoint.WebPartPages; Then in your code // First get the list SPSite site = new SPSite("http://myserver"); SPWeb web = site.OpenWeb(); SPList list = web.Lists["MyCustomlist"]; //

Debugging SharePoint 2007 Code

我的梦境 提交于 2019-12-03 07:59:11
How do you debug your SharePoint 2007 code? Since SharePoint runs on a remote server, and I'm developing on a windows xp machine (with the necessary .dll files copied into my GAC), I haven't had much luck with finding easy ways to debug. Breakpoints don't work, etc. The best way I've come up with is to enable page tracing in the web.config file, write trace messages throughout my code, and access trace.axd whenever I need to debug. Does anyone have any better suggestions for debugging? Am I missing something? From Andrew Connell's blog post on the subject: Attaching the debugger to GAC'd