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

learn more… | top users | synonyms (3)

2
votes
1answer
148 views

Add content to the editor

I've developed a ribbon button to Sharepoint inside Media tab. This opens a dialog where I list loads of content. On click I'm calling a function to close the dialog and it is supposed to insert some ...
2
votes
4answers
2k views

How to invoke server side code from Ribbon

I want to create a Button in my Ribbon which modifies some fields in my items.. In details I want to select more than one element and select my "link" button and make the elements be "linked" by an ...
1
vote
1answer
1k views

Why we shouldn't use SPWeb witryna = SPContext.Current.Web;

How should change a code to use another conect to site in Sharepoint. Which code, to change SPWeb witryna = SPContext.Current.Web; Here is my examplary code: protected void ...
1
vote
3answers
5k views

How to enable ViewState when developing asp.net form in web part?

I have a web part with a simple asp.net/c# form. The first thing I noticed is that the form controls are not keeping their values after a postback. I thought this seemed weird since my web.config has ...
0
votes
2answers
3k views

How is Infopath 2010 “Sharepoint List Form” different from “Web Browser Form” and other form types?

If to create a new Sharepoint list, browse to it and click on ribbon a violet button with Infopath logo "Customize Form", one can edit fRom Infopath Designer a fOrm used for updating/editing and ...
10
votes
4answers
5k 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 ...
6
votes
3answers
335 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
4answers
3k 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
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
5answers
4k views

How do you remove fields from a custom list in SharePoint that have been added via the 'Add from existing site columns' menu item?

I have a custom list, and I've added a 'Page Image' field by clicking on the 'Add from existing site columns' link on the Settings page for the list. I would now like to remove the field, but clicking ...
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
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 ...
3
votes
2answers
591 views

How to get changes from SP server 2010 in client object model?

Below is the code: ClientContext context = new ClientContext("http://SPSite"); context.Credentials = new NetworkCredential("user", "pwd", "domain"); ChangeQuery cq = new ...
3
votes
1answer
1k views

Add users to the site collection administrator group through code

You can add users to the site collection administrators group through Site Actions ->Site Collection Administrators (and add users) But how can you do this through code? What is the grpName? ...
3
votes
2answers
594 views

Recommendations for SharePoint 2010 training?

I have a $2,000 training budget this year, so I'm looking for the best bang for the buck. The $2k would have to include travel, if any is required, and I'm based in Raleigh, NC. I would like to ...
2
votes
3answers
2k views

Get absolute URL to listitem's default display form

I need to have an absolute URL of a listitem's display form - currently I do it the following way: On http://mydomain.com/: item.ParentList.ParentWeb.Url.TrimEnd('/') //"http://mydomain.com" + "/" ...
2
votes
2answers
233 views

Can we avoid clunky hiding of WebParts?

It's a real drag and performance killer to have to load all the WebParts on a page and then laboriously hide and reveal all the ones relevant to user groups / permission levels. Especially when on the ...
2
votes
1answer
494 views

Why Item Updated and Item Added trigger together when we add a item to list (document library)

I have gone through hundred of articles over months but never understood as what could be the reason Item Updated and Item Added trigger together when we upload a item, even though if you try ...
2
votes
2answers
512 views

SharePoint 2010 — Visual Studio Project Structure

What are your project structures for sharepoint projects. For example my simple structure is: Think of a project named MyPortal MyPortal.sln --MyPortal.Branding (Custom master pages, page layouts, ...
2
votes
1answer
308 views

Does anyone know how to create a sharepoint search alert using c#?

i need to develop some sharepoint search alert related werb part and would be grateful if anyone who has previous knowlenge in this area share code snippets or sights where i am guided. Thank you.
2
votes
2answers
715 views

sharepoint webpart property disappear after a day (C#)

I developed a custom webpart with a webpart property with some textboxes and it works partially. If I deploy the project, the written text in the property is away. This is ok. But my MAIN Problem ...
2
votes
4answers
3k views

How to Password Protect a SharePoint Object (Reassuring High Level Users That its secure)

Edit to clarify: The purpose of this isn't to replace SharePoint security or to add some extra super security or about trust in SharePoint, it is instead to consider something that is very much ...
2
votes
4answers
5k views

Loading jQuery in the Correct order

I wish to use a jQuery plugin in SharePoint. Currentley I have jQuery added to each page via a custom master page. <script src="/Style Library/js/jquery-1.6.4.min.js" ...
2
votes
2answers
1k views

SetCustomProperty within OnSaveChange

Saving Custom Field Type properties using SPField.SetCustomProperty within the IFieldEditor.OnSaveChange event does not seem to work, for reasons explained elsewhere. I've seen all kinds of bodges ...
1
vote
1answer
63 views

Disable drag and drop option for multiple file uploader

These are the screenshots of multiple file uploader from the same SharePoint 2010 site. Some users are seeing the first and some are seeing the second one. Is it possible to disable the second ...
1
vote
1answer
159 views

SharePoint, LINQ & Reporting Services Tools

I'm new to SP and SSRS, so I want to check if my thoughts are correct. Report Builder and BIDS suck on data retrieval so I have to go deeper using code. Is it possible to write some code in C# using ...
1
vote
2answers
143 views

How to get the event/trigger of a SharePoint workflow?

A SharePoint workflow can be associated with a list, and configured to 'start when a new item is created', 'when an item is changed' or 'manually started by an authenticated user'. This is my ...
1
vote
5answers
20k 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 ...
1
vote
1answer
558 views

Does Anyone Any freeware/open source PDF converter we can use with sharepoint 2007

We currently using Active PDF software in our farm, which converts documents into pdf and merge them using our K2 back end coding, however I am looking for something easier, well doesn't matter even ...
1
vote
2answers
655 views

Deploying custom webservices

I am working on an old project, not currently used, that I pulled from our source backups. I have experience as a Sharepoint user but this is the first time I have been developing for or ...
1
vote
2answers
573 views

Disable value in dropdown menu after being selected

I have created a library in which i am using the drop down column with some values.These Values will depend on the group to which the user belongs. For Eg. If Drop Values are A, B , C, D, E and ...
1
vote
2answers
2k views

Get document id after uploading it to SharePoint using the same web service

Does any one knows how to get the document id after uploading it to sharepoint using a single web service? So by using one call i can upload the document and get it's id. I looked at Copy.asmx web ...
1
vote
1answer
1k views

ListAdded Event Receiver not Firing for List Instances

I have a List definition in Visual Studio which is instantiated using a List Instance. This list definition has an event receiver which overrides the ListAdded event. I am able to get the ListAdded ...
1
vote
3answers
227 views

What is best practice for deploying third party SharePoint 2007 solutions?

I want to know what to look for and what to do (both from a developer and IT admin point of view) before installing a third party solution into a SharePoint 2007 farm? Is there a checklist that I ...
0
votes
1answer
117 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
172 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
171 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
971 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 ...
6
votes
4answers
519 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 ...
5
votes
6answers
495 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
81 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
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
678 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

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 ...
3
votes
2answers
3k 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
500 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
4k 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
780 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
303 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 ...