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
256 views

Visual Web Part as consumer of PPS Filter Provider

How do you turn an existing Custom (Visual) WebPart into a WebPart that is a Consumer-capable WebPart of Provider WebParts? References are applenty but very few are actual design patterns that ...
0
votes
1answer
277 views

System.UnauthorizedAccessException was unhandled by user code in simple code

I got this exception in very easy code and I have running with elevated privileges around it. private void ChangeVersioningOnDocumentLibrary(SPListItem item, SPItemEventProperties properties, SPSite ...
0
votes
1answer
195 views

User's Alerts always null

I've set the user alerts fine (I've even checked through the UI that they're there). But when it comes to accessing these Alerts the collection is always null: I understand that the SPUser must be ...
0
votes
1answer
1k views

SP2010 Set Site Search Settings through code

I would like to use code behind to set the search settings of my site: The Site Collection Search Center Url Site Collection Search Dropdown Mode: Show Scopes Dropdown Any ideas on how to ...
9
votes
5answers
596 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 ...
8
votes
4answers
18k 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
509 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, ...
4
votes
0answers
83 views

Can you add comments to an append-only field in a list in Sharepoint 2010 using C#? [duplicate]

Possible Duplicate: Can you programmatically add comments to an append-only comment field in a custom item list using C#? Posted on stack exchange first, then I found this Sharepoint ...
4
votes
2answers
5k views

How do I change the Title column of a list programmatically?

The twist to this question is that I am using a localized site - the site is using the Norwegian Team Site template. Hence, the Title column is actually named "Tittel". Presumably, the following ...
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 ...
3
votes
4answers
884 views

Which is Better a UserControl or WebPart?

What are the advantages of user controls over WebParts when dealing with SharePoint? Some I can think of are: familiarity, reusability, and development speed. I am planning to implement them in ...
3
votes
2answers
4k 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 ...
3
votes
2answers
550 views

Regex Query Against FAST Search 2010

I'm looking for a way to do searches with FAST Search Server 2010 based on Regular Expressions. For instance, I'd like to be able to use: ^\d{3}-\d{2}-\d{4}$ And have it return any content ...
3
votes
1answer
5k views

How to get the current site url in sharepoint

How to get the current site url in sharepoint, I am using SPContext.Current.Site.Url but this returns package site url, if i create a new site in existing site and activate my feature in it, and call ...
3
votes
3answers
827 views

Securing usernames and passwords for external SQL DB

We want to ensure that we are following best practice around connecting to a custom database. I'm not a developer as such so thought I would ask SharePoint Overflow :-). We have several SharePoint ...
2
votes
1answer
725 views

Programmatically trigger “New document” action in a document library

I've been asked to check if it is possible to trigger the creation of a new document linked to a content type. Like, to make it simple, you have a webpart, a button, you click it, and it opens the ...
2
votes
3answers
1k views

Simultaneous development environment for SP2010 and SP2013 in single OS

I have on my laptop a development environment as win7 with std IIS, SharePoint 2010 Server, SQL 2008 R2 and Visual Studio 2010. I already installed Visual Studio 2012 side by side. But what about ...
2
votes
1answer
4k views

How to add a registration button to a calendar list / list form?

my use case is: I want to create an event management system without using meeting workspaces (sadly I/We can't use them, at least the senior dev. told me). There shall be: One Calendar List, ...
2
votes
1answer
337 views

Is there a way to only clear a specific item from the recycle bin?

I know I can empty the recycle bin for a site collection with the following: public static bool EmptyRecycleBin(string siteCollection) { try { using ...
2
votes
1answer
3k views

Set multiple values to Enterprise Keywords TaxonomyField

I want to programmatically set the values of the Enterprise Keywords Managed Metadata field. This field supports multiple values, but I can only get it to take one at a time. I have the following ...
2
votes
4answers
2k views

CAML query to find a value that does not begin with

I want to build a CAML query to search for all title fields that do NOT begin with a certain value: something like this: Where Title NOT BeginsWith 'myvalue'. How can i do that in my CAML query?
2
votes
1answer
2k views

Why can't I update an SPView query?

I'm trying to update a SPView query, it doesn't give any error but it also doesn't update the property (SPView.Query). In SPManager 2007 it works with the resulting query of that code. Can you spot ...
1
vote
3answers
1k views

Programatically Modifying SharePoint List Item-level permissions using CSOM

I have a SharePoint 2013 (on-premises) document library named “Reports”. It inherits the parent site’s permissions (by default). It has a column named “AssignedTo” of type People or Groups (mandatory ...
1
vote
2answers
703 views

Retrieve all site collections

I want to retrieve all site collections in an Online tenant through Visual Studio: I can do it via Powershell: get-sposite on-premise server : Get-SPSite on-premise again: var sites = ...
1
vote
2answers
747 views

Updating 'Created By' field in SP2010 programatically

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically). I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only ...
1
vote
1answer
735 views

Check box in gridview should update the splistitem check box

I am a newbie in visual studio. I have a Sharepoint list which contains the following fields group name, user, section and active(which is a check box) . I have a grid view visual web part which will ...
1
vote
2answers
2k views

SP GridView Filtering in share point 2010

I have sp grid view in my application page, I am binding some data to the sp grid vie, now I want to apply filtering for this grid. I am googling on this one since 2 days, I am unable to get the exact ...
1
vote
1answer
85 views

Content DB not getting any permissions on web application created through central admin

I tried to create a Web Application using Central Admin. It created web app without displaying any error, I can browse site too after creating site collection and that, but content db got no ...
1
vote
2answers
2k views

How to get user tasks from My Site task list?

I'm working on a solution in SharePoint 2013. It's a Web Part that is going to display the five tasks that are due next from the task list on the current users' My Site. I'm new to SharePoint and kind ...
1
vote
1answer
159 views

InfoPath, and Calling a instation of Template InfoPath from Event Receiver

I want to call a form of InfoPath from Event Receiver. How Could I set a field infopath a Values, from Event Receivers to sets a Values on infopath fields which could I Validate and show or hide a ...
1
vote
1answer
407 views

CAML how tu change Query to get a Range from Date Start, to Date End

I have got a list with the specyfic column Nazwisko | DataPoc | DataKon | I'm made a procedure like You told me, but debbuger told me that it's not coming to the loop for. string ...
1
vote
1answer
1k views

Rating's not being saved

Initially, I thought there was a problem with a control I've made to rate a document when I found that no documents appeared to be rated. So last night I rated documents (approved and published) ...
1
vote
2answers
551 views

Convert an SPTimeZone to a TimeZoneInfo Object

I am working with the Exchange Managed API on SharePoint and in order to correctly get date/time information from the Exchange Managed API I need to pass it a TimeZoneInfo object when initializing the ...
1
vote
3answers
2k views

Redirect from ItemAdded event

I am using an ItemAdded event handler for doing some validation. If my validation fail is it possible to redirect the user to another page. Ideally it would be good to show the page in a dialog box. ...
1
vote
0answers
78 views

What are the must have tools when working with SharePoint? [duplicate]

Possible Duplicate: List of SharePoint 2007 / WSS 3.0 development tools When developing or administering SharePoint, what are the must have tools? This question is intended to reference ...
1
vote
1answer
1k views

What cannot be developed for Sharepoint Server 2010 in 32-bit workstation? and in 64-bit workstation?

Before, I was developing remotely on Microsoft Sharepoint Server 2010 machine (Windows Server 2008 R2 Datacenter and all servers 64-bit) accessing it over internet through RDP from Windows XP SP3 ...
1
vote
1answer
1k views

EventReciever to change permissions

I am trying to create an event reciever on a document library that on creation it removes all permissions and gives the author contribute writes. All other users get nothing. I have the following ...
1
vote
0answers
428 views

Content Types not visible under New Button

I have a Sandboxed Custom Action for SharePoint Designer that can add Content Types to Document Libraries. The problem is that it does not automatically add it under the "New Document". It's not ...
1
vote
1answer
252 views

InfoPath form template not displaying in custom Application Page [duplicate]

Possible Duplicate: SharePoint InfoPath formviewer part I have a requirement for opening an InfoPath item from an InfoPath library in a custom application page. Here is the code: ...
1
vote
3answers
890 views

Upload document to SharePoint document library using batch in C#

I want to know if i can upload a document to sharePoint document library using batch in C#. I know how to update and delete it using batch, but i don't know how to upload it. If i can't, what is the ...
1
vote
5answers
3k views

Error while adding SharePoint web service reference

I got stuck up with the following error, while trying to add reference for the web service Lists.asmx in sharepoint 2010 from VS.NET 2010. The document at the url ...
0
votes
3answers
2k views

How to use SP.UI.ModalDialog.showWaitScreenWithNoClose to display custom loading message?

I use a modal dialog to display my custom aspx page. However, the page takes some time to load, and I would like to provide custom loading message while the modal dialog is loading. I found out here I ...
0
votes
0answers
228 views

Why edit option is not working on the SPGridView in SharePoint 2010?

Have created the Webpart based on http://kitmenke.com/blog/2010/02/18/editing-in-sharepoints-spgridview It does work however I want display the results based on the filter value as below it ...
0
votes
1answer
379 views

Trying to view custom application page in browser results in “404 FILE NOT FOUND” error

In VS2010 I created a new .NET 3.5 solution and inside a new project for SharePoint 2010 (empty project called "SPAppPageTest"); I deployed it as a farm solution. I added a new application page, ...
0
votes
2answers
339 views

Retrieve user's tasks from mysites using server object model

I am having trouble aggregating info on all tasks from current user programmatically. This is what I got so far: SPWeb web = SPContext.Current.Web; SPSiteDataQuery query = new SPSiteDataQuery(); ...
0
votes
1answer
442 views

Using custom SPRoleType

Environment: SP2010 Enterprise, VS2012, c# Server-Side, full control of environment I'm trying to assign unique permissions to an SPItem (a folder in a document library) through a console app on the ...
0
votes
3answers
112 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 ...
0
votes
2answers
69 views

How to describe all content from the list in SQL

I must do Data Warehouse from my lists in Sharepoint. I need to connect to the Sharepoint and get all elements from the list and Show them in MS SQL Serwer 2008 R2. I need to show them in another ...
0
votes
2answers
3k views

Could not load file or assembly or one of its dependencies. The system cannot find the file specified

I am really baffled by this issue. I am very new to SP 2010 Development, so Your speak will have to be really dumbed down. But essentially I have this activation method I re-factored - Still ...
0
votes
1answer
694 views

openfiledialog in webpart

How to implement openfile dialog in a webpart ? OpenFileDialog class could not be accessed in webpart. Is there any other way to achieve this ?