The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.
27
votes
4answers
743 views
How can I make a SharePoint open source project at home?
I have an idea for a small SharePoint solution that can be quite useful, and I'm thinking about writing it in my spare time. How can I do it?
This is a relatively small project, which I don't ...
26
votes
57answers
4k views
List of SharePoint development tools
What tools do you consider essential in your SharePoint development toolkit?
One answer per tool please so the community can vote!
26
votes
5answers
10k views
How to update custom master page and page layout, which is already deployed
I have a feature which deploying custom page layout. It's done by this code:
<Module Name="MasterPageModule" Url ="_catalogs/masterpage">
<File Path="MasterPageModule\defaultTemplate.aspx" ...
23
votes
2answers
3k views
When to use OpenWeb() vs RootWeb
I am a little confused on the pro's and con's of each. When is it good to use OpenWeb() vs RootWeb, especially in the context of a using statement.
16
votes
3answers
3k views
Find Document by GUID
I'm missing something that must be so simple that it's not even worth asking... but I have an object ID (GUID)... How do I figure out the document it points to?
For example I have a GUID of ...
16
votes
4answers
297 views
Infrastructure knowledge for SharePoint developers
As a SharePoint developer I find that having a good understanding of the underlying infrastructure (such as Active Directory, DNS server, etc.) is very useful.
I must say I'm not that good when it ...
16
votes
4answers
1k views
How are you doing automated testing?
One area that I have always found a challenge is being able to get my automated builds (in whatever guise, MSBuild Nant etc) to deploy the created solution (WSP) to a remote machine, install and test ...
12
votes
2answers
1k views
How to access my “Outgoing E-Mail Settings” from code?
Is it possible for me to pull the values that are in:
Central Admin -> System Settings -> Configure outgoing e-mail settings
from my code behind using the object model?
11
votes
5answers
4k views
Can't install Sharepoint Foundation 2010 on Windows 7
I'd really like to prepare development environment for Sharepoint 2010. This is what I did:
I installed Windows 7 x64
I installed VMWare Workstation
Created a VM domain controller based on Windows ...
10
votes
2answers
7k views
Safest way to get a date from Sharepoint into a C# datetime field, using object model?
If I have a Sharepoint list item with a date field.
How can I get the field value populated into a c# datetime object?
For example:
DateTime validfrom = Convert.ToDateTime(item["validfrom"]);
...
10
votes
2answers
216 views
“Best Practices” for SharePoint customizations/development to easily migrate to new SharePoint versions
Do you know of any documents that describe “best practices” for SharePoint customizations (especially custom developments) in order for these customizations/code (for example web parts, event ...
10
votes
2answers
4k views
How do I connect with SharePoint Online Web Services in order to access list and taxonomy data?
I am using the SharePoint SOAP web services to try collecting list and taxonomy data from a site on SharePoint Online.
The following code works nicely when connected to a standalone SharePoint farm. ...
9
votes
6answers
1k views
How to choose a development computer for a SP 2010 environment?
I'm looking for a descent development computer that targets SharePoint 2010.
The computer must be a laptop and does not have to rely on a domain controller (or at least not all the time).
What are ...
9
votes
4answers
2k views
Getting my head round spsite vs spweb vs anything else
I am fairly new to Sharepoint development (But learning it rapidly due to some initiatives I have in place - not exams).
Anyway, one of my biggest stumbling blocks is the naming convention for ...
9
votes
6answers
4k views
Event Receiver Firing for all Lists - even when ListUrl is set
I have two custom list definitions - List 1 and List 2, both with different ID's for the Type in the elements.xml. List 1 is called 'List1' and the other is called 'List 2', note that the second list ...
8
votes
2answers
809 views
When to use SPItem vs SPListItem
I am confused on when to use SPItem vs SPListItem—specifically when grabbing items from a document library. What are the benefits of each and downsides of each.
7
votes
3answers
399 views
Should SPWeb objects be passed to other methods or re-instantiated?
Should I pass my SPWeb object to a method or recreate it in that method?
7
votes
4answers
509 views
What are the dangers of using a static class that contains your SPWeb object?
When creating my SharePoint 2010 solutions, I often create a static class that contains helper methods and lists, documents, list items, etc that I use frequently. What would the dangers of putting my ...
7
votes
4answers
278 views
Options for SharePoint 2010 developer training?
What are my options for solid, relevant and affordable training for SharePoint 2010 development? I am working with a relatively small budget and would also have to do this on my own time, so it would ...
7
votes
2answers
4k views
SP.UI.ModalDialog.showModalDialog using the html option
http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal.
I have a string like this;
var html = ...
7
votes
1answer
937 views
Best practices for creating a shared code library for SharePoint projects
I have several projects for SharePoint 2010 (mostly they are separate solutions built each to separate wsp's) in active development. And I have a similar tasks in these projects (logging, ...
7
votes
1answer
468 views
When to use VS 2010 vs. SP Designer for development
When do we use Visual Studio 2010 for SharePoint 2010 web part development and when do we stick with Designer? Are there pros/cons? As a noob, it seems that for more robust, customized web parts, ...
7
votes
9answers
2k views
Getting Started with Sharepoint 2010 Development with no prior Sharepoint knowledge
My boss wants me to learn Sharepoint 2010 development (and he wants me to learn it now!). I have never done anything with Sharepoint. Where should I start?
About Me: I am an Asp.net developer, and ...
6
votes
12answers
887 views
What resources would you recommend to someone who would like to learn and possibly become a SharePoint Developer?
What resources would you recommend to someone who would like to learn and possibly become a SharePoint Developer?
6
votes
3answers
284 views
“SharePoint is not a database!” article of 2009 - does it still apply for SP 2010 and 2013?
I'm talking about this blog post by Chris Woodill.
He mentions the following advantages of modeling data via SQL programming instead of SharePoint's lists:
Primary And foreign keys: one of the most ...
6
votes
4answers
355 views
What are the benefits of grabbing a list by Guid compared to any other way
I know its always best to access a list by its Guid since it won't ever change, compared to accessing a list by Title or Url, but what are the other benefits of grabbing a list by the Guid?
There ...
6
votes
5answers
5k views
In which situation use SPSecurity.RunWithElevatedPrivileges with superusertoken?
i have given permission only read only to Users Group.so there are not access to see listitem or any list.
i have create application page with SPGridview with bind listitem.
this page access by this ...
6
votes
3answers
2k views
WebPart where to store a connection string
I have a webpart that connects to an external DB. I need somewhere to store the connection string. It is possible for this data source to change but would always be the same for the site collection ...
6
votes
2answers
2k views
How to rename title column in Document Library using code?
Everybody loves renaming columns. The title column is a favorite of mine and I can't seem to rename it via code:
SPList list = web.Lists.TryGetList("MyList");
Guid guid = new ...
6
votes
2answers
794 views
Download file from a sharepoint site from code behind
I have an Image button in a custom 2010 webpart, on click of that I would like to download a file.
Code Used :
foreach (string filename in item.Attachments)
{
attachmentURL = SiteListURL + ...
6
votes
1answer
2k views
Attach a file to the list item
I attach file to the list item when it updating and when new item added. Additional condition when item updating - if the file already exists, remove it and replace the new.
I receive events ItemAdded ...
6
votes
7answers
530 views
Getting started with SharePoint 2010 for SharePoint 2007 Developers
Do you know some quick links that will help a SharePoint 2007 Developers to get started with SharePoint 2010.
Let me start with the links I know.
General Information on SharePoint 2010
Must watch ...
6
votes
3answers
426 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 ...
6
votes
3answers
131 views
Filter out folders from a user alert against a list
I have created an alert for a user against a list (more specifically, a document library).
I want the user to be notified of all changes regarding list items (documents) and not any sub folders.
...
6
votes
5answers
171 views
Should I use lots of SharePoint Lists or a SQL Database to store the data for my new bespoke application?
I am working on a project to create a new bespoke intranet website for around 50 users. The data volumes are relatively small, but in order to model the data I need to store (about the 100 or so ...
6
votes
2answers
96 views
Anonymous access: Add an Item to List without allowing to View the List
I'm creating a 'Contact Us' webpart with form to allow anonymous user to send a message which will be added to a SharePoint List.
However I cannot grant the anonymous user the permission to Add ...
6
votes
1answer
317 views
Compressing Files in a Document Library with Server-side Code
Anyone know of a way, that within the context of server-side code (like in the callback of a WebPart) to compress a set of given files in a document library, placing the resulting compressed file back ...
6
votes
1answer
1k views
Opening the default “New Document” editor for a given ContentType from an external C# application (Sharepoint 2010)
I'm currently working on integrating some SharePoint functionality to an existing C# application we have here. Most of the requirements have be fairly easy to implement: I'm using the ListData REST ...
5
votes
9answers
3k views
ASP.Net WebPart or SharePoint WebPart
This is an almost religious question; what are your preferred base classes for building WebParts in SharePoint? Are you using the ASP.NET WebPart (System.Web.dll) or the SharePoint WebPart ...
5
votes
3answers
6k views
Get Site Collection full URL using javascript
I want to get the URL for my site collection. One way I thought I could do it was using the window.location in javascript and getting it that way.
I know that you can use ECMA script and the client ...
5
votes
2answers
165 views
User alerts being sent for something that happened before alert was created
I create a web.
I create a doc library within this web.
Create folders within this doc library.
Then 'subscribe' (i.e. create an alert for) a user for this doc library.
Why, if I'm doing things in ...
5
votes
6answers
446 views
Does the level of effort justify using SharePoint 2010 as a public facing webportal?
I have a predicament in a project I'm currently involved in. Due to the nature of the project and the customer, I will not be able to disclose any detailed information regarding the actual project, ...
5
votes
7answers
5k views
What are good ways around the List View Threshold?
I'm trying to use data from a SharePoint list in SSRS (Reporting services).
The report isn't too big - only a few dozens rows, but for each row I need to add data from a second list, which (currently) ...
5
votes
5answers
550 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 ...
5
votes
6answers
3k views
Using a development farm or standalone?
When doing development for SharePoint 2010, should we use a farm or a standalone setup? One difference is that the farm uses the full SQL Server while standalone employs a local SQL Express db. Our ...
5
votes
2answers
689 views
Do you have to dispose of the SPWeb in the EventReceiver when using properties.OpenWeb()?
Does properties.OpenWeb() create a new SPRequest object or does it refer to the existing SPWeb object already there in the properties object? Should we manually dispose of the SPWeb obtained in this ...
5
votes
5answers
965 views
When I execute a CAML query, how do I know what ListItem details I can include?
I was querying a SharePoint library, trying to retrieve some file attributes. Apparently some things like FileType and Date are not supported, even though those fields are listed as a built in field. ...
5
votes
3answers
565 views
sharepoint caml is fast - how?
We all know that Caml is faster than using linq, since linq internally gets translated to caml.
But can anyone explain how caml is best to do sharepoint queries or how it is fast or what makes it ...
5
votes
3answers
185 views
Things to “get right” to succesfully develop Sharepoint solutions
Lets face it, SharePoint 2010 is a big ecosystem. You need to know the GUI, the administration options, the data model, have programming skills, know the API, know how it works internally etc etc.
I, ...
5
votes
2answers
845 views
How to modify the Site Settings page programmatically?
I need to modify the Site Settings page in a site collection to include an extra link. How can I go about doing this using c#?


