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

learn more… | top users | synonyms (3)

5
votes
3answers
241 views

Can i build solutions for SharePoint Foundation and SharePoint Server on the same development machine?

My question is regarding the different SharePoint 2010 editions. Say I am running SharePoint Server on my development machine, since most of my solutions are made for SharePoint Server. If I should ...
5
votes
3answers
1k views

How do I find out what's wrong with my sandboxed solution in SharePoint Online?

I have created a custom web part which presents a form to create a SharePoint site below the current site, while performing some ancillary actions like updating a list of subsites on the front page to ...
5
votes
1answer
744 views

Problem Extending SPDiagnosticsServiceBase

I am trying to create a feature that Extends the SPDiagnosticServicesBase class following the code described in MSDN That article has example code for extending the SPDiagnosticServicesBase class ...
5
votes
3answers
1k views

Why don't folders work when adding an XsltListViewWebPart to the page via code?

I have an issue with adding an XsltListViewWebPart to a page for a Document Library. When I do it using the code below everything works fine unless I create a folder and upload a document there. Such ...
5
votes
3answers
208 views

Equivalent of a database table in SharePoint?

I'm making a Publishing site, and part of this site will display information about company products. We have a number of products, and each one should have its own description page. The description ...
5
votes
1answer
144 views

Programmatically set a WebPart title to a $Resources value

I need to programmatically add a web part to a page where the title is using a $Resources:Filename,Key; string. I know I can use SPUtility.GetLocalisedString() to retrieve the correct value (and loop ...
5
votes
1answer
311 views

Get SPListItem from LINQ

I have used SPMetal to create a data context. I can query my lists. The queries return an object of the type of list that they are in. Is it possible to convert this type into a normal SPListItem ...
5
votes
3answers
1k views

SharePoint Web Serivces Access Denied; Only From VS 2010

After not getting much help on the last question, I decided to blow away the VM and re-create it as I already lost a week on this issue. And of course still issues, btu a little different. I am ...
5
votes
3answers
718 views

What happens to executing Timer Jobs when the Timer Services is restarted?

What happens to executing Timer Jobs when the Timer Service is restarted? Does it abruptly abort any executing jobs? Is there an exception to catch (for example ThreadAbortException) in your timer ...
5
votes
3answers
726 views

Custom 404 Pages

I have followed Microsoft's instructions for custom 404 pages in SharePoint by setting the web application's FileNotFoundPage property. I am now still getting a 404 error if someone types a site ...
5
votes
3answers
255 views

CAML query on external list: access denied by business connectivity services

I am trying to run a CAML query on a BCS list and getting access denied as an error when debugging the code: SPList CMList = web.Lists[Constants.cmlist]; SPQuery query = new SPQuery(); query.Query = ...
4
votes
5answers
1k views

What is the difference between SPContext.Current.Web and SPContext.Current.Site.OpenWeb()?

My colleague found that some scenarios of working with SPWeb objects depend on how you obtain them. I'm not talking of impersonating with UserTokens - that another story. But at times when you write ...
4
votes
7answers
648 views

What are all supporting tools commonly used by SharePoint 2010 development?

CAML Builder SharePoint Designer 2010 CKS Development tool edition(server) SharePoint Manager 2010 These are the tool which is used to make SharePoint development simpler. Can someone tell is ...
4
votes
4answers
1k views

Tips for starting SharePoint development

I'm going to start developing SharePoint applications and I'm looking for some good introductory resources (articles, videos, books, dev tools, tips). I'm comfortable with C# and ASP.NET development, ...
4
votes
5answers
7k views

How to check if a user exists in a group

How can i check if a user (not the current user) exists in a group. The SPGroup object allows to check if the current user is member of the group, but there is no method that checks if a SPUser given ...
4
votes
5answers
2k views

Thorough Sharepoint 2010 development book suggestion?

I'm looking for a developer's book that would be quite in-depth and works from the basics to advanced stuff without requiring previous knowledge of MOSS 2007. I would like the book to explain basics ...
4
votes
3answers
2k views

How to add event receivers to all the lists in a site collection?

What is the best practice around adding event receivers across all the lists in a Site Collection?
4
votes
4answers
3k views

SPItemEventReceiver ItemAdding - Differentiate between a file and a folder

I've setup a custom event receiver. The purpose of my event receiver is to stop people from uploading any file type except PDF's. Right now my code looks like this: if ...
4
votes
9answers
450 views

What are the best resources for SharePoint 2010 development?

What are the best resources for SharePoint 2010 development? Please do one answer per answer. Thank you.
4
votes
1answer
3k views

Checking existence before using GetItemById

I am getting an item by using GetItemById but I want to check before using it whether the item exists or not. I don't want to use a query as the main purpose of using GetItemById is performance. ...
4
votes
2answers
1k views

Moving a web part to a different zone on a page

How do I programmatically move a web part from one zone to another on a page? I have multiple sites that I want to loop through each site and update the page.
4
votes
3answers
101 views

Is there a way to get Folder object from ListItem one?

This is my first post, so I'd like to say hello to everyone. I'm trying to get Folder object by its path in SharePoint 2010 client application using Client Side Object Model (.Net 4.0). I need to ...
4
votes
2answers
132 views

ListItem[“Property Name”] VS ListItem.Properties[“Property Name”]

When we try to get list item properties, three ways of getting property I remember are, ListItem["Property Name"] //always work fine ListItem.Properties["Property Name"] // works fine unless I ...
4
votes
2answers
4k views

Is there a hack to installing SharePoint 2013 on Windows 8?

Apparently SharePoint 2013 is not officially supported on Windows 8 (which does not make sense to me). And, just like the Vista hack for WSS 3.0/MOSS 2007 I am looking for a hack to install ...
4
votes
3answers
1k views

I'm trying to understang how AJAX and Sharepoint play together

I'm about to embark on a project whose goal is to take a Sharepoint wiki of documentation, and add an index as the left nav (right now, there's only search). As users click on an index item, the right ...
4
votes
2answers
284 views

Efficiently determine if a List is using item level security

How can you efficiently determine if any of the items in a List don't inherit their security from the List? You could use SPListItem.HasUniqueRoleAssignments but this would require iterating through ...
4
votes
4answers
2k 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
970 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
3answers
751 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
1answer
108 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
2answers
2k 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
1answer
354 views

Adding custom colours to the colour picker

Is it possible to add your own colours to the colour picker. If so how do you do so?
4
votes
1answer
109 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
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
3answers
505 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
1k 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
2k 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
1answer
663 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
722 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
3answers
102 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
374 views

Button not appearing on custom tab

I'm attempting to add a tab to the Library contextual group. So far that works inside a Document Library. I can also see my Group on the new tab, but I don't see my button (will have more than one ...
4
votes
1answer
3k views

List does not exist error while using GetListItems

I am trying get Data of a list using GetListItems Method of Lists.asmx Here is my code: XmlDocument objXMLDocument = null; NetworkCredential credentials = new NetworkCredential("user", "pass", ...
4
votes
3answers
416 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
1answer
1k views

JavaScript error using date picker inside an update panel?

I placed the SharePoint date picker control inside an update panel and when I click on the calendar it gives me this error: Microsoft JScript runtime error: The value of the property ...
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
2answers
219 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
2answers
223 views

Using Distributed Cache programmatically. “Cache referred to does not exist” error

I'm trying to take advantage of Distributed Cache in SharePoint 2013 programmatically from a console application. I want to store custom objecst inside App Fabric Cache. Here is the code that throws ...
4
votes
1answer
2k 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
755 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 ...