The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

1
vote
1answer
237 views

Display the actual attachments(Image) in Announcements list?

I have a custom web part on my home page pulling data from the announcements list. When a user clicks on the Title (I have created it as a link) it directs to this page: I would like to modify the ...
0
votes
1answer
610 views

SharePoint: Move SPListItem inside folder to root and set lookup field value

Dear stackoverflow members, Maybe someone knows a solution for our task: Given a custom list with folders for countries: ListA ---FolderA (Title: "USA") ------Item1 ------Item2 ------Item3 ...
0
votes
2answers
1k views

Finding all activated Site Features & Site Collection Features in a Site Collection Script

I wonder if someone knows any C# script that will provide me all Site Features in a site collection as well as all Site collection features in a site collection. I only required Activated features ...
0
votes
1answer
15 views

Site Features in Sub Webs Confusion

Very Basic but confusing question. I see we have three types of features, Web Application Features Site Collection Features Site Features Now I know that Web application features belong to web ...
1
vote
1answer
459 views

Using SharePoint resource files in literal

I have a user control, and I would like to use there the OOTB resource files for some standard text. So I found a resource file WSS and there a resource to view. In code: <asp:literal ...
0
votes
3answers
950 views

is it possible to get file properties

I'm trying to crawl over site documents and find their properties. While I was able to do the first part, using something like ClientContext clientContext = new ClientContext("http:xxx"); ...
1
vote
2answers
566 views

SPContext.Current is sometimes null in code behind of InfoPath

On occasion I find that SPContext.Current returns null in the code behind of my InfoPath forms. This is occuring while I have the form open in a SharePoint 2010 site collection. I can't figure why ...
1
vote
3answers
357 views

How to check if a item in a custom list have a property or not

I added a check Check Box to a custom list library form which works well with new files uploaded and I can check the property Value by bool.Parse(listItem.Properties["columnName"].ToString()); but ...
1
vote
0answers
315 views

Sharepoint 2010 - item field updating not working on a document library

I have this code here from a webpart that creates a treeview from a document library. For each item in the list it will create two child nodes called "Up" and "Down". When you click up, it should ...
0
votes
2answers
41 views

Sending file from SP2010 to WSS using Work Flow

I would like to send a file from one document library in SP 2010 to another document library in WSS 3.0. I was thinking web services would be the best way to do this. Can anyone point me to the right ...
0
votes
1answer
729 views

close infopath form with managed code [duplicate]

Possible Duplicate: How to close an infopath form in C# style? I am trying to close the browser (aka where infopath form is loaded) with managed code. I tried some for variation below but ...
0
votes
1answer
663 views

ItemUpdated Event, After or Before Property Title name is null

No matter what I do, before and after for title are always null. This is an item updated receiver in the meetings or event list ![public override void ItemUpdated(SPItemEventProperties properties) ...
1
vote
1answer
758 views

Read selected Item from List

I have a code that read all items from List Airtports. I want to get selected Item from List. How can i change below code to get it done, Please help function ReadListItem() { var listTitle ...
1
vote
2answers
656 views

Change Url of existing site by code

I have a meetings list, when a new event is created a subsite is created with an specific format. The list allows to change the date of the events, but when this happens the name of the subsite and ...
1
vote
3answers
1k views

Can you programmatically add comments to an append-only comment field in a custom item list using C#?

I understand that you can access comments in an append-only field like: public string retrieveComments(SPListItem item) { SPListItemVersionCollection versions = item.Versions; ...
2
votes
4answers
518 views

What are the dangers of disposing of SPWeb when it's automatically disposed of?

In some cases such as: using (SPSite site = new SPSite(@"http://sitecollection/")) { SPWeb web = site.RootWeb; } you don't need to dispose of the SPWeb object because it is disposed of ...
2
votes
3answers
441 views

OWSTimer.exe suddenly disappeared

I am testing/debugging this Timer Job, while deploying my solution again and again using WSP Builder, I manage to hide OWSTimer.exe so now I cant find it to attach timer job to and debug my code, ...
0
votes
0answers
271 views

Adding a SharePoint list to an Update Panel

I am trying to add a SharePoint list to an AJAX Update Panel. I am doing this by adding a ListViewWebPart to the Update Panel. My code: SPList fcsRequestList = ...
4
votes
0answers
81 views

Can you add comments to an append-only field in a list in Sharepoint 2010 using C#? [duplicate]

Possible Duplicate: Can you programmatically add comments to an append-only comment field in a custom item list using C#? Posted on stack exchange first, then I found this Sharepoint ...
2
votes
1answer
464 views

how to get Custom List Item Property

I added a new column to Sharepoint Custom list which is boolean type, now each time I upload a item to list, it displays that column to check or leave it blank, by default its checked, I wanna access ...
1
vote
2answers
515 views

Add field to content type in specific position

THe code below is working perfect, however I need the new field to be in the 5th position, and not at the end in the forms. Any idea how? private void UpdateDossierContentType(SPWeb parentWeb) ...
1
vote
1answer
448 views

Is it Possible to use PerformancePoint Services in FBA Site?

I have followed this article to activate Performance Point Services in Central administration. I have activated all the features of Performance Point Service in SiteCollection level as well as Web ...
1
vote
1answer
352 views

SPJobDefinition Execute Method isn't overriding

I built a custom Timer Job on activation I was able to debug it and it was going through Execute method I am overriding but suddenly its not overriding anymore. Code is here: public class ...
1
vote
2answers
597 views

Add lookup field to list from a RootWeb

I have the site collection rootweb called Main Site. I have many subsites called according to the year, 2012, 2011, etc. In the rootweb, there is a list called Products. In the subsites there is a ...
1
vote
0answers
402 views

Adding/removing items to/from a DropDownChoiceField

I can't seem to manipulate the items displayed in a DropDownChoiceField I have that's tied to a field on the custom content type with big, really frustrating problems. This field is only visible in ...
1
vote
0answers
615 views

SP 2010 Windows Authentication Default Login

I want to be able to use a simple HttpModule to catch visits to a sharepoint site that don't automaticly pass windows authentication and log them in as a default windows account. I want it to be so ...
0
votes
1answer
889 views

Event receiver for a custom List

I created a custom Event Receiver using WSP builder, and in elements.xml file i have given the ID of list which i find in elements.xml of List definition of particular list. I also activated the ...
0
votes
2answers
178 views

How to check if Item Deleted in a list was the last item (in a EVENT Receiver)

I want to check If deleted item is the Last Item deleted in the List in following method, public override void ItemDeleted(SPItemEventProperties properties) { } I know I can get web url using ...
0
votes
1answer
174 views

Timer on a SharePoint List

I came across a very interesting scenario I need a Timer for Item added Event receiver for a SharePoint List and this list is being added to hundred of Webs. Now each List needs a timer job, which ...
1
vote
2answers
1k views

Error using SPRequest when the SPWeb is already disposed

Is this correct way of using the SPSite and SPWeb and the SPList. private SPList list; pulic void getList() { using (SPSite site = SPContext.Current.Web.Site.WebApplication.Sites[0]) { using ...
0
votes
1answer
219 views

Adding column to a SPList

Normally I create a New List if I want to add an additional column to a List that already exists in a web. Wondering what would be the best option, should I create a new list with additional column ...
0
votes
1answer
223 views

Check if any user is currently logged in

I have a userID/userName, and I want to know if that user is currently loggedon to the SharePoint site. The SPUser object does not seem to have any of these properties. I looked at ...
1
vote
3answers
662 views

Upload document to SharePoint document library using batch in C#

I want to know if i can upload a document to sharePoint document library using batch in C#. I know how to update and delete it using batch, but i don't know how to upload it. If i can't, what is the ...
0
votes
1answer
383 views

Claim auth from ADFS

I asked this question @StackOverflow[1] but maybe this is a better location for it: I try to connect to a SharePoint Online instance via a WPF-Application (C#). I have found this article[2] that ...
0
votes
2answers
1k views

TaxonomyWebTaggingControl Not Showing Up on Page

I am attempting to use a Taxonomy Picker Control (TaxonomyWebTaggingControl) on an Application Page based on the term set configured for a User Profile property. In this scenario, I have set the Ask ...
2
votes
1answer
1k views

Web Part zone index not working

I am installing a web part on a few different pages. I have set my zone index to 0, yet they still wind up below the other web parts on the page. Here is my code: TasksWebPart ...
0
votes
1answer
294 views

Difference between SP 2013 Preview development environment and SP 2013 Server Preview

Just going through few projects provided by Microsoft for sharepoint 2013 developers I seen requirements for development tools, it says This sample requires the following: Visual ...
0
votes
1answer
436 views

get custom fields only from a sharepoint list

Can anyone tell me how can I get the custom fields from a sharepoint list? I don't want to get all the fields like hidden, just the custom ones or the ones in the default view. The end result will be ...
6
votes
3answers
1k views

Moving a site to a different site collection

I am looking for a C# script that will move a site with all permissions and content to another site collection. Google isn't helping me or maybe i dont know what exactly to look for. e.g. I have a ...
0
votes
2answers
396 views

determine if the `Metadata Navigation and Filtering` feature is activated on a site collection

Is there a way to determine if the Metadata Navigation and Filtering feature is activated on a site collection? I've looped through the farm features, site features and web features but I can only ...
0
votes
3answers
228 views

How to extentd ListProperty control by custom properties and methods

My question is regarding a custom control which I created. This custom control derives from a ListProperty control. public class CustomListProperty: ListProperty Normally to call ListProperty on ...
1
vote
1answer
91 views

How to declare and use extended control in master page

Regarding my question, I have an OOTB control called ProjectProperty, which i can call in sharepoint like that: <SharePoint:ProjectProperty Property="Title" runat="server" /> I want to extend ...
1
vote
1answer
368 views

Error with Asp Dropdown List in SharePoint 2010

To start with, I have a template setup that came from Microsoft for Timecard Management. This template basically tracks the project someone is working on and the specific task. On one page, it is ...
1
vote
3answers
2k views

Redirect from ItemAdded event

I am using an ItemAdded event handler for doing some validation. If my validation fail is it possible to redirect the user to another page. Ideally it would be good to show the page in a dialog box. ...
1
vote
3answers
4k views

Programatically, how do I change the default document content type of a Document Library in SP2007?

I have 40 document library lists and I have to change the default document content type for these document libraries. In UI, this is possible by On the document library, go to Settings > Document ...
0
votes
1answer
161 views

Using an event receiver to validate a page

I need to evaluate certain properties of a page whenever it's being saved/published as part of a custom validation I need to implement. I notice properties has both Cancel and ErrorMessage properties ...
3
votes
2answers
425 views

Content Deployment and Migration API not importing no error thrown

The following http://blogs.technet.com/b/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-4.aspx provides the follwoinf code to import and ...
5
votes
5answers
859 views

Pros and cons of code vs. no code in SharePoint development?

Here's my situation: I work in a user area and have been tasked with creating usable SharePoint sites for different areas. Some are doc management, some are collaborative work spaces, some are task ...
0
votes
1answer
4k views

An example of databinding the repeater control?

I am trying to develop a custom visual web part to display the latest 5 announcements with the images that are attached from the OOTB announcement lsit.I have a repeater control with an Item Template ...
2
votes
2answers
911 views

Adding webpart to filter view by code is not working

I need to add a new page in a new doc library. That works fine. In the page I need to add a webpart to filter list data from a view bases on 3 columns from the view. The following code is not ...