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

learn more… | top users | synonyms (3)

4
votes
4answers
4k views

Get SPWeb by ID without Site Collection?

I have a list of SPWeb IDs and would like to open the associated SPWeb objects. However, I do not know in which Site Collection they are (I DO know that they are in the current Web Application ...
4
votes
2answers
314 views

Feature Activation Logic (Prevent Activation)

I have three site collection features used to set branding throughout the site collection. I want to prevent the accidental activation of one of the features if one of the three is already activated; ...
4
votes
4answers
3k views

Is SharePoint 2010 Server mandatory on Developers workstation?

I have been a Developer during the Classic VB/ASP days. I remember that we used have Client Tools (Visual Studio, SQL Enterprise Manager) on Developers Desktop and there used to be seperate high-end ...
4
votes
3answers
6k views

Getting the SharePoint Web Application URL Programatically

Is there an easy way to get just the web application URL in SharePoint, for example, SPWEbApplication has the following property spwebapplication.sites that would return URL's of all the site ...
4
votes
2answers
2k views

Change masterpage from Seattle to Oslo using CSOM, Sharepoint online

Using CSOM and c#, I would like to change the master-page from Seattle to Oslo. Can anybody help me?
4
votes
2answers
7k views

How do I get the url for attachments on an SPListItem using C#?

I have an SPListItem for which I would like to get the urls of all its attachments. The urls will be used as part of my custom web part which has an SPList of SPListItem items.
4
votes
3answers
1k views

call stsadm.exe programmatically (using System.Diagnostics.Process) doesn't seems to work

The title pretty much says it. My target is to deploy a custom alerttemplates.xml to my SharePoint 2010 solution programmatically. Which would decrease the steps for an installation of the solution, ...
4
votes
1answer
8k views

How to full uninstall SharePoint 2010

I wanted a clean install of SharePoint 2010 so I recently uninstalled it as well as deleted all the content databases from Central Admin and SQL Management server. I then re-installed SharePoint 2010 ...
4
votes
3answers
878 views

Unit testing web parts

I've read the articles from Andrew Woodward (21Apps) trying to get started with unit testing on WSS, but when I try something more advanced, like Webpart connections, I don't know how to start ...
4
votes
3answers
2k views

How to create a site in a sitecollection on a remote SPServer using C#

I am currently trying to write a Dynamics CRM 2011 plugin that creates a new SharePoint 2010 site (within an existing site collection) for every account that is created. I have the code for creating a ...
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 ...
4
votes
3answers
11k views

How to retrieve Users and Groups seperately from a “Person or Group” column via C# code?

I have a field in the discussion list, which allows the initiator of the discussion to specify the people to share the discussion with. This field is typed as 'Person or Group' that allows selection ...
4
votes
2answers
5k views

JQuery Accordion with SharePoint 2010 Custom List

I have a FAQ custom list in Sharepoint 2010 with two columns: Question (title column renamed) and Answer. I want to display the questions and answers from the sharepoint list in JQuery Accordion. ...
4
votes
5answers
34k views

how to upload file to sharepoint doc library via c# application?

I need to upload files with specific information(custom fields) into sharepoint document library via custom windows application. I have no idea how to do it, anyone has any examples how to do it ...
4
votes
2answers
5k views

Adding description to sharepoint link URL using the C# CSOM

I'm currently adding the URL except the description is an ugly link. I would like to add the description to the URL in a links list on sharepoint online. My current code to add a new item from an ...
4
votes
5answers
3k views

Disposal of SPWebs created using SPSite.OpenWeb()

After reading some answers/comments on Disposal of SPWebs retrieved from SPContext.Current.Site.AllWebs, I opened up Reflector to dig deeper into the SPSite and SPWeb classes. I ran into a surprise, ...
4
votes
1answer
992 views

groups.getByName(groupname) is undefined

I have copied some snippets of code from here to test if a user belongs to a certain group, I am using Sharepoint 2010, however I am getting an method is undefined error. I am making sure that sp.js ...
4
votes
1answer
246 views

Logging in Apps, where, and what other options do I have

If I am using a provider hosted app with the code below, its not clear to me how can I monitor logs, provider hosted apps runs in this case in a separate iis site, correct? The System.Diagnostics ...
4
votes
4answers
1k views

How to programmatically modify item level permissions prior to first save?

I've got a situation where there are strict permissions requirements on an a list of which I already have written a custom form. The requirement is that upon creation, based on metadata, only certain ...
4
votes
2answers
2k views

SharePoint 2010 FBA: Redirect on Sign Out

I'm using the SharePoint 2010 FBA Pack http://sharepoint2010fba.codeplex.com/. Basically, I want to redirect to the homepage once a user Sign's out. I'm unable to find this. Could someone please help ...
4
votes
2answers
3k views

Copy file to sharepoint

Below is my method which is meant to copy a file from a folder on my desktop to the sharepoint document library shared documents. Its giving me error on SaveChanges method call, error shows me this ...
4
votes
2answers
3k views

Sharepoint 2010 ModalDialog title

I am creating a popup window in sharepoint using this code in javascript. function openDialog(title, url, width, height, CallResult) { var options = { url: getUrl(url), title: title, ...
4
votes
3answers
7k views

Error occurred in deployment step 'Recycle IIS Application Pool': Invalid namespace

I am trying to test developing for SharePoint 2010 on a Windows 7 machine. I created a new empty SharePoint project, added a web part and deployed, which worked fine. When I try to run or deploy a ...
4
votes
2answers
212 views

Hide document library using CSOM

I want to prevent users from accessing some document libraries. I have used the following code but it didn't work, Any solution? doclibraryinstanse.Hidden = true; doclibraryinstanse.Update(); ...
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> ...
4
votes
2answers
8k views

how to give Role permission to list programmatically?

I have set my web permission to Inherit Permissions as well as Lists.and programmatically i have add SPUSER to web with assigned 'Restricted Read' access Role. and also associate SPUSER to List1 ...
4
votes
1answer
6k views

Programmatically set data source link for SSRS Report files

I have a scenario where I export/import a site collection with the Content Deployment Wizard. The problem is that all Reporting Services (SQL Server 2008 R2) reports (all located in the same document ...
4
votes
1answer
2k views

How to find the Author Name using SP Client Context in SharePoint 2010?

I am trying to find the Author Name(created by) for a given Item Id using the SP Client context in SharePoint 2010. Below the code snippet var ctx = new SP.ClientContext.get_current(); ...
4
votes
1answer
800 views

Deploying custom page into the pages library using a feature in SharePoint 2007?

I have a custom page and want deploy it into the pages library of the site using a feature in SharePoint 2007. Whenever the activated the page should added into the pages library and should removed on ...
4
votes
2answers
744 views

Web Parts for both 2007 & 2010

I'm curious if anyone has seen any guidance/best practices on developing web parts that can work for both SP2007 & SP2010 with minimal conversion? They wouldn't take advantage of any new 2010 ...
4
votes
2answers
1k views

Custom field type won't postback

I've been trying to build a custom field type. It's basically a set of cascading dropdowns, where the values of the second dropdown are taken from another list based on the selected value in the first ...
4
votes
2answers
252 views

Using jQuery in SharePoint 2013

I'm trying to implement a solution in SP 2013 where the global navigation docks to the top of the browser as you scroll down. Like on this site. The dev at this site provided the jquery he used to ...
4
votes
3answers
3k views

How to download the historical file version content using CSOM

I am trying to download the previous version of a document from _vti_history location of the file using client object model but the OpenBinaryDirect is giving not found 402 error for URL. My ...
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 ...
4
votes
2answers
3k views

SPFolder vs SPListItem

I've trying to build a tree view which will show a Sites Lists and folders. This is an external application so I have to communicate with WSS3 through web services. Site |-List | |-Folder | ...
4
votes
2answers
9k views

How do I disable\stop or enable\start Sharepoint 2010 on my Windows 7 development machine

I used the SharePoint 2010 Easy Setup Script to setup my Windows 7 machine for Sharepoint Development. However, I don't want the Sharepoint services hogging up CPU in the background when I'm doing ...
4
votes
3answers
468 views

Manage some state inside a Sharepoint WebPart

Considering a simple example of a webpart that adds items to a list based on a simple button click: public partial class MyVisualWebPartUserControl : UserControl { private int cont = 0; ...
4
votes
2answers
235 views

Pros of Sharepoint and Build Server (TFS, TeamCity,…)

What are the pros using a build server with sharepoint when having projects your working alone at?
4
votes
1answer
725 views

How To Create New Item using ListFieldIterator Control

I am trying to use the ListFieldIterator control in my web part to render a list form. I have a button event that suppose to update the current item from the ListFieldIterator control, after I click ...
4
votes
1answer
5k views

Can the zoom/scale on JS Grid conrol in gantt mode be changed?

I have created a webpart with a JS Grid control with gantt enabled. I want the gantt view to display months instead of weekdays. Anyone have an idea how to do this? Update: The following link is what ...
4
votes
4answers
1k views

Add a Web Part Zone to “My Newsfeed” Page via PowerShell

I've done a fair amount of looking into this idea without promising leads. Let me define my problem: I need to add a third column (as a Web Part Zone) to the "My Newsfeed" page in My Sites. The ...
4
votes
2answers
3k views

This functionality is unavailable for field collections not associated with a list

I have the code below and up the fld.Update() line, it crashes saying This functionality is unavailable for field collections not associated with a list The string values I provided are fine. ...
4
votes
3answers
247 views

How to programmatically detect if a solution is deployed?

Situation: There's a sharepoint farm with ~60 solutions. On some not specified time someone can deploy a new /update an existing solution to this farm. Everytime a deployment is successfull I need to ...
4
votes
2answers
6k views

Can't access the user profiles in a console application

I want to make some manipulation with the user profiles from a console application. I'm trying to enumerate the profiles, with no success : var mysite = "http://my"; ...
4
votes
1answer
2k views

Programmatically create MySites for Users with FBA

I am trying to create MySites for users programmatically but I am receiving the following error: My Site creation failure for user '' for site URL 'http://goaccel-app2:1000/sites/mysites/personal/'. ...
4
votes
1answer
523 views

In SharePoint 2010 how can I add user selected WebParts at run time?

I am quite new to SharePoint and have been given an interesting problem to solve. My users have requested to each have a custom home page that they can customise with ease. The design I have been ...
4
votes
2answers
297 views

Sharepoint application with offline support

I want to create an application (C#) that can work with Sharepoint in offline mode (read/add/modify documents) and sync with the server whenever a connection is established. What is the best solution ...
4
votes
3answers
111 views

SharePoint Training - 2007 or 2010?

We have SharePoint 2007 and hope to migrate to 2010 sometime. If I take 2010 will the stuff I learn work on 2007 or should I take 2007? I am wanting to learn the back end. Creating Web Parts, etc. ...
4
votes
1answer
216 views

How to programmingly create a “Link to a Document” in an ASP.net web application?

I have a asp.net web application which requires to upload files to a SharePoint document library. I got that working. Now, I need to know how to code using C# in my web application to create a "Link ...
4
votes
1answer
120 views

Does writing a custom RBS provider force one to put SharePoint into unsupported state?

It is well known that modifying a content database directly by running direct SQL queries results in an unsupported SharePoint state. However, it is possible to develop custom RBS providers. Note that ...