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

learn more… | top users | synonyms (3)

6
votes
4answers
531 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
4answers
14k 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 ...
6
votes
6answers
498 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, ...
6
votes
2answers
874 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 ...
6
votes
4answers
4k views

What SharePoint 2013 Development can be done in Visual Studio 2010?

It looks like the tools for developing SharePoint 2013 customizations are mostly in Visual Studio 2012 and "Napa for Office 365." If you've tried developing solutions for SharePoint 2013 in Visual ...
6
votes
5answers
1k 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 ...
6
votes
4answers
10k views

How can I get the root site collection from SPContext.Current?

With SPContext.Current I can get the current site or current web. However, I would like to get the root site collection for my current web application. I know that I can get the web application from ...
6
votes
3answers
3k views

Disposal of SPWebs retrieved from SPContext.Current.Site.AllWebs

As there was a minor disagreement on whether SPWebs retrieved from SPContext.Current.Site.AllWebs should be disposed, I thought it would be appropriate to post a new question and discuss it here. I ...
6
votes
2answers
383 views

HTML in SPGroup.Description

I am trying to add a group (SPGroup) programmatically. Everything works fine except for one thing. I would like the group's description to include a link to it's site. Similiar to the look-and-feel in ...
6
votes
2answers
2k 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
5answers
1k 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. ...
6
votes
3answers
3k views

What is the best way to determine if CurrentUser is System Account?

Traditionally I use: if (web.CurrentUser.Name == "System Account") Is there a possibility the System Account Name could be something other then "System Account". Is there a more reliable way to ...
6
votes
3answers
796 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 ...
6
votes
4answers
18k views

Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>

I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
6
votes
2answers
2k views

Do I need to reset SPWeb.AllowUnsafeUpdates after use?

Do I need to reset the SPWeb.AllowUnsafeUpdates property after use? Seems not, but all over the web there is code like: bool allowUnsafeOrig = web.AllowUnsafeUpdates; web.AllowUnsafeUpdates = true; ...
6
votes
2answers
1k 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#?
6
votes
1answer
2k views

Attach a file to the list item

I attach a file to the list item when it is updating and when new item added. Additional condition when item updating - if the file already exists, remove it and replace the new one. I receive events ...
6
votes
3answers
345 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
1answer
754 views

Obtain Default Content Access Account via PowerShell

As part of farm configuration audit, I need to obtain the current content access account. While I've found several resources for setting the default content access account for search using PowerShell, ...
6
votes
4answers
1k views

Force a value into NewForm.aspx

I have a specific case where I want to hook up on the NewForm.aspx, hide a MultipleLookupField and set the value by myself. I'm opening the NewForm.aspx with Javascript and using some query strings ...
6
votes
2answers
1k views

Using dependency injection with SharePoint

In the particular project I'm working on we are already using Enterprise Library. I'm researching using it (i.e. Unity) for dependency injection. The recommended way to include Unity is modify ...
6
votes
7answers
605 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
582 views

How to get two User Profiles service application using C#?

Is it possible to get two User Profiles service application 1). User profile service1 2). User profile service2 I have some code which only fetches the Ist User profile service application but ...
6
votes
2answers
1k views

What is the best practice for securely storing a connection string in SharePoint?

I'm writing an application page in SharePoint and I want to securely store the connection string. I've used a variety of methods before but they all seem a little "suspect". What is the recommended ...
6
votes
3answers
603 views

Use a supplemental .config file just for a web application

I'm trying to add a section into the web.config of a SharePoint 2010 application and I created a webconfig.myname.xml in the \14\CONFIG folder. I then ran the following command to apply the changes: ...
6
votes
3answers
108 views

SPList.GetItems(view) vs SPList.GetItems(query)

Which solution from the two is the most efficient one: 1. Using SPList.GetItems with a given view as a parameter 2. Using SPList.GetItems with a given query as a parameters and then retrieving from ...
6
votes
1answer
1k views

SPListItem.SystemUpdate(false) is still triggering alerts

Environment: SP2010 Enterprise, VS2012, c#, full server access Simple question... I'm using a console app to create sub-folders in a document library based on user input, then calling ...
6
votes
2answers
487 views

Picture Library Image size event receiver

I created a event receiver but work ok for single file but no work for multiple files, HttpFileCollection collection = _context.Request.Files; for (int i = 0; i < collection.Count; ...
6
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 ...
6
votes
1answer
792 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 ...
6
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 ...
6
votes
3answers
211 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 ...
6
votes
1answer
271 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
2answers
238 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
5answers
16k views

How to get current user with javascript?

I have a list . I want select items of list with a special quary.(get items that created with current user). Then get count of items. I use this code for get current user : function Initialize() { ...
5
votes
10answers
4k views

What technical skills do you use most when developing/deploying SharePoint?

(I think my question is sufficiently different from this question to justify asking it. My question is not about useful SharePoint resources, but what technical skills you actually need...) I'm a ...
5
votes
3answers
6k views

FeatureActivated event receiver giving access denied when trying so set WebApplication property

When a Site event feature is activated I am trying to set some properties on the web application. My feature uses this value. public override void FeatureActivated(SPFeatureReceiverProperties ...
5
votes
4answers
9k views

How to fix “A SharePoint server is not installed on this computer”

To do SharePoint custom development, what is the recommended method? I've read this post, and it appears that if you want to use debugging in VS2010, you'd want to have SharePoint on the same machine ...
5
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. ...
5
votes
6answers
5k 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
3answers
197 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
417 views

What are delegate controls for?

I just run this example: http://msdn.microsoft.com/en-us/library/ms470880.aspx But I dont see what are delegate controls for, I can do this same thing with webparts or visual webparts, so what are ...
5
votes
2answers
264 views

Why we need to do IIS Reset after adding a template

I added a template using, STSADM -o addtemplate -filename "C:\Stalker\BaleeeBaleee.stp" -title "YouBreakLive" I can see it in Central Administration in "Custom" site templates when I try to create ...
5
votes
4answers
310 views

Using Third Party editor in sharepoint 2010

Sharepoint 2010 content editor is better than sharepoint2007 but it's lacking lots of functionality. Is it possible to "substitute" standard rich text editor with something like Telerik Rad editor? ...
5
votes
2answers
5k views

Create New SharePoint Group Programmatically

How can I create a new SharePoint group by code?
5
votes
1answer
502 views

Only show Sorting option not filtering opetion in contex menu of header in ListViewByQuery

I have creatd ListViewByQuery control through coding and added the control through RencerControl Event. I am filtering the list in code. so filtered result is shown. I want to hide filter context ...
5
votes
1answer
2k views

Open modal dialog from code-behind with parameters

What I need to do is to open an aspx-page in a modal dialog when the user clicks on a asp:button. Currently I'm doing this: (Markup) <asp:Button runat="server" ID="TestButton" Text="Add ...
5
votes
3answers
929 views

Using TFS and SharePoint Designer

I am part of a team working on a large, heavily customized SharePoint 2010 publishing site using TFS for source control and a mixture of Visual Studio and SharePoint Designer for development. One ...
5
votes
5answers
3k views

How to create a deployment package for a Sharepoint 2010 webpart in Visual Studio 2010

This might be a dumb question, but i really tried to google and didnt find any good answer. I was developing some webparts for SharePoint 2007 in Visual Studio 2008, and when i would build my ...
5
votes
3answers
9k views

How to use JavaScript and CSS in a web part?

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net. And I want to ...