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

learn more… | top users | synonyms (3)

0
votes
1answer
107 views

How to detect if the user exited page edit mode?

I am making a visual web part for SP2010, and the webpart hides shows content depending on if there was a postback or not. However the only exception to this, is the postback of exiting the page edit ...
0
votes
1answer
24 views

Get which fields were modified - before calling Update()

I need to call Update() on an item only if some fields were modified, and some other fields were not modified. Is there anyway to get, programmatically, a list or array with the names of the fields ...
0
votes
1answer
71 views

Create folder in Generic Setup Path

Trying to create folder in filesystem. But it doesn't work for general domain users, only for admins. I've tried _strArticlePath = SPUtility.GetGenericSetupPath(Path.Combine(_strArticleStoragePath, ...
2
votes
2answers
173 views

Cant see document libraries in content by query webpart

I have the following Content query webpart created by code. But its not showing me the last modified documents as I need, when I go to edit page and check the webparts properties, it does not even ...
2
votes
2answers
6k views

How to send an email in a visual studio sequential workflow

I'm trying to create a sequential workflow using VS. I'm needing to loop through all the items in a list and send an email if one of the columns equals a specific status. I have not found any good ...
0
votes
2answers
272 views

2010 - SPFolderCollection not updating with new items

2010 Enterprise, VS2012, c# server-side Here's the situation: I have a method that gets an SPFolderCollection object from a document library. It then loops through the list checking for a specific ...
4
votes
1answer
149 views

Memory Leak is it?

I have this small chunk of code and I can't understand why it's taking soo memory. static void Main(string[] args) { using (SPSite mySite = new ...
0
votes
3answers
162 views

SPFolderCollection valid index arguments

SharePoint 2010, c# server object model, VS2012 Long story short, I'm trying to fetch a folder of a document library, create a new folder in it from an array of names, then fetch the new folder via ...
1
vote
3answers
56 views

New to Developing SharePoint Web Parts and Features

I recently Developed a really simple web part scoped to site (or at least it's feature is). I also created a feature that up[on activation is suppose to create a new content type. That's fine and ...
1
vote
2answers
1k views

Site columns created programmatically don't show up anywhere

I need to create a site column programmatically during feature activation (requirements - supose I can't change that). My code is fairly straight forward: string internalName = ...
3
votes
1answer
6k views

Feature activation error: System.InvalidOperationException: Operation is not valid due to the current state of the object

i have taken one List Email event receiver(Type is EmailReceived) and that event receiver attach with document library. when i am activate that feature got error. i have check on ULS Viewer. error ...
0
votes
1answer
1k views

How to add “Title field with link to Edit Menu” to a View using code-behind C#?

all I am trying to attempt adding Title with Edit Menu in SharePoint 2013 through code-behind. However, I am unable to do so. Below is my syntax I am using: StringCollection strViewFields = new ...
1
vote
0answers
81 views

Changing a file in a document library with SharePoint web services

I'm trying to update a file in a document library using the SharePoint web service. The "CopyIntoItems" method from the "Copy" web service I use to upload new files returns an error if I try to ...
1
vote
1answer
528 views

Which type of app can I publish to Office Store?

I want to know that which type of Apps I can add in Office Store for selling purpose? I created an AutoHosted App and add it to Office Store and after few days I got the error report saying that ...
2
votes
3answers
416 views

SP2013 Development Environment

Curious how people are setting up their development environments for SharePoint 2013. Is it cost effective to setup everything in the cloud? Seems not because Azure keeps charging you even if your ...
2
votes
1answer
3k views

How to check if user has read/write permission for a SPListItem in c#?

In my SP2010 visual webpart, I am checking permissions with the code below. Basically the current user is either an admin or a regular user. If they are an admin, they need to have permission to edit ...
0
votes
0answers
32 views

How to add to Sharepoint list editing mode false after value change

I have got a list with a lot of elements. I want to add to sharepoint list date which block editing when the date expired. When the date not equal the selected Value.
0
votes
1answer
220 views

XSLT list view webpart is not displaying data after adding view dynamically

I am customizing xsltlist view webpart using c#. I am able to get the results properly till I give the view name to the code. As soon as I give it it's not rendering the data. It's only displaying the ...
1
vote
2answers
425 views

Add hyperlink to custom web part properties

I would like to add a hyperlink to a custom web part which will take the users to a web page on a new window with the configuration settings for the web part. If I try and add a text property as ...
5
votes
1answer
725 views

How can i add multiple items to a lookup

I have a CSOM console app that uploads files to a library, then it creates a lookup field in another list and also adds lookups to the files in my library. The following code adds a single item in ...
0
votes
1answer
178 views

SP 2010 Visual Webpart - How to get all documents in a folder and sort them by caml query?

I am making a visual web part for sharepoint 2010. I have a SPFolder object and I want to get all items in it, but I want to sort it by a specific field. I want to do this by CAML query instead of ...
5
votes
1answer
3k views

How do I remove all users from an SPGroup object?

I have an SPGroup object populated, how can I remove all members from the group, so that essentially I start with a fresh group. I can't delete and recreate it, so I need a way to work with the ...
4
votes
4answers
2k views

SharePoint -access to path is denied

I am working in SharePoint 2010. My requirement is to create folder inside SharePoint layouts and create a file inside that folder. Also I need to access the file for a current logged in user. ...
2
votes
3answers
1k views

Sharepoint site throws exception on clicking save button after uploading a file

I have deployed an event reciever with item added event on a document library in sharepoint site. In item added event I am calculating the number of pages for the uploaded document and updated a ...
0
votes
1answer
64 views

Will the code be leaking

I've wrote here a code for SharePoint 2007 to modify few items through out of all site collections in web app, my question is the code written good, or is there a leak somewhere, and i could improve ...
0
votes
2answers
374 views

ContentType.FieldLinks.Add() issue with hidden and required

I have a feature that does the following in the feature activation Code : Creates a new SiteColumn (Type=Text, Hidden=False and Required =True) Set the french version of the Name (using ...
4
votes
3answers
112 views

best way to store property of a site

I have a site called Exhibitions that contains many many subsites each of which is an individual exhibition (with pages, images etc). I would like to attach to each of these subsites a property which ...
1
vote
1answer
414 views

Looping through all the document libraries and modify the items

I have here a piece of code which loops through the all site collections and webs and lists to find particular and modify some items: foreach (SPSite site in webApp.Sites) { ...
0
votes
2answers
752 views

Uploading an InfoPath form programmatically

I know how to upload the published xsn InfoPath form, but when I try to open it, the form can't find its code behind assembly dll. Does anyone know how to add that? I know it gets put in hive 14 ...
0
votes
1answer
552 views

How to Programmatically load a SPList from an Generic List…?

After running the program... I check my site and only see city5. I also have a console app that undoes all below. The foreach loop only works for the last item. Tying to load all 5 cities... ...
0
votes
1answer
363 views

content query webpart, show document libraries items only

The following code adds a cqwp, and it works almost fine. When I go to design view, the type is Assets Library instead of Document Library. What am I missing here? #region Last updated documents ...
0
votes
1answer
443 views

How can I access/set stsadm properties from code?

I'm trying to set the ChangeLogRetentionPeriod stsadm property from code, which is normally set from the SP powershell. What is the best way to go about setting this property from code? Background: ...
4
votes
1answer
9k views

CAML Query Lookup/Choice Value Type as Text

So, here is some lines of code that i write to retrieve data from Sharepoint list using CAML query. string qryCaml = string.Format(@"<Where> <And> ...
0
votes
1answer
24 views

COM ListItem not updating

ClientContext cl = new Microsoft.SharePoint.Client.ClientContext("http://" + "mysharepoint" + "/" + SubWeb); System.Net.NetworkCredential cred = new System.Net.NetworkCredential("myuser", "mypass", ...
1
vote
0answers
40 views

Problem in mail web part

I wrote this code to send mail but there are exceptions in running it. public string SendEmail(string mail, string password, string to, string subject, string body, string filePath) { ...
0
votes
2answers
4k views

How to programmatically check if the current user has permissions to a site collection?

Given the URL of a site collection root, plus the current logged in user, I need to know if the user has permissions to at least see the welcome page. If there is no Welcome Page set, then I need to ...
1
vote
1answer
2k views

Customize SuiteBarLinks without removing NewsFeed, SkyDrive, and Sites

I want to customize the suitebar links and I already did with a delegate control the only thing is that it removes the existing links, newsfeed, skydrives and sites and I want to keep them public ...
0
votes
1answer
111 views

CAML query, only want to render days in Calendar

I'm new in CAML. I try to learn it. I want to render a day's on ASP Calendar. Have got a list with 5 colums/fields: Kontrakt | Pracownik | Dzien | ID | Procenty ...
0
votes
1answer
336 views

Get reference to the document library sharepoint 2013

I want to get reference to document library in code using SP 2013 by url, I am trying the SPWeb.GetList(url); but it works for lists only. any help?
0
votes
1answer
57 views

Developing a custom NewForm

I have created a custom layout in _layours/PhoneBook/createform.aspx and then wrote the following code to run upon activation: private void newAddFormForMembers(SPWeb web) { SPList ...
0
votes
0answers
22 views

Where in MS SQL Server 2008 R2 are list content [duplicate]

Where in MS SQL Server 2008 R2 could I find out a content from all lists which I have got in my Site Colection. If I oppen MS SQL Serwer 2008 R2 I see a lot of data bases, but I don't know in which ...
0
votes
1answer
40 views

Sharepoint not Installed

Hello I'm trying to create a sharepoint 2010 project. I have Sharepoint as well as Visual studio 2012 installed on a VM, but when i go to create a new sharepoint project it tells me "Sharepoint not ...
0
votes
1answer
115 views

Creating directory structure from custom ribbon action

Environment: 2013, VS2012 I'm trying to develop a custom ribbon button for a document library that creates a folder (ie: a new project) and populates it with a hierarchy of sub-folders. I have some ...
1
vote
0answers
171 views

how to update Document in doc set

I've been trying to update the file name of a document inside of a doc set. I continually get either a "Invalid data has been used to update the list item. The field you are trying to update may be ...
0
votes
1answer
669 views

Order of web parts programmatically added to SharePoint page

I am adding multiple list viewer web parts to a SharePoint [web part] page using the code below: // Create the object SPLimitedWebPart Manager SPLimitedWebPartManager WebPartMgr = ...
0
votes
2answers
456 views

how to add items to managed metadat

I've added an new term in the 'taxonomy term store'. The new terms show in the columns that are using managed meta data. I'm querying the Lists/TaxonomyHiddenList/AllItems.aspx list for id's, but ...
0
votes
2answers
765 views

How to add a calculated column to list view programmatically?

I have created a SharePoint feature where I have added a list named "Employees". I have added a Content Type "Employee" and added to it some columns like "Vacation Days Taken", "Vacation Days ...
1
vote
0answers
652 views

SPListItem.Update Not working

So I have this really simple function which updates a couple of fields on two different lists (one is a document library) The thing is on the document library does not updates any of the fields I need ...
0
votes
1answer
159 views

How to set the rowlimit in content query webpart by code?

I need a content query web part that returns me the last 10 modified or added documents into any document library on that specific website. How can I add the rowlimit by code? ContentByQueryWebPart ...
0
votes
0answers
62 views

Error in adding post to a blog programmatically

I used linq to insert post into blog programmatically but when i clicked button error is appeared