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

learn more… | top users | synonyms (3)

3
votes
4answers
3k views

How do I display the results of a CAML query on a data grid in sharepoint 2007?

I want to develop a custom web part for SharePoint 2007. How do I display the results of a CAML query on a data grid? The grid view should be customizable, and should not adversely affect performance. ...
3
votes
5answers
2k views

RunWithElevatedPrivileges - Usage recommendations

I have a strong gut feeling that using SharePoint's RunWithElevatedPrivileges should be avoided like the plague, but need to convince some others as to exactly why. Here's what I have. Spawns a new ...
3
votes
1answer
126 views

Does adding custom code to native SharePoint aspx files automatically result in an unsupported state?

I want to add some custom code to one of the native SharePoint's aspx files in the hive (14\TEMPLATE\LAYOUTS). Specifically, I wish to implement a Page_LoadComplete event that does some additional ...
3
votes
1answer
144 views

Change masterpage from Seattle to Oslo using CSOM, Sharepoint online

Using CSOM and c#, I would like to change the master-page from Seattle to Oslo. Can anybody help me?
3
votes
2answers
218 views

Sharepoint unit testing using fakes framework

I have an application which uploads a file to SharePoint via client object model. Now I need to write unit test cases for this application. The problem is, I how do I write test cases for the ...
3
votes
2answers
403 views

How could I put a references of Ajax Control Toolkit in a GAC

How Could i put a references to the Gac. I want to putting a dll file to the AjaxControl Toolkit.
3
votes
1answer
176 views

Disposing of SPWeb object query

I'm trying to understanding the object clean up process. using (SPSite siteCollection = new SPSite(siteUrl)) { SPWeb site = siteCollection.RootWeb; foreach (SPList list in site.Lists) { if ...
3
votes
3answers
1k views

Can not update Navigation programatically

I have following code var subWeb = newWeb.Webs.Add(subsite.Url, subsite.Title, subsite.Title, 1033, PublishTemplate, false, false); subWeb.AllowUnsafeUpdates = true; subWeb.Update(); PublishingWeb ...
3
votes
1answer
95 views

Changing the name of a sharepoint list programmaticaly

I'm trying to change the "name" of a sharepoint document library (not the title). I have found a way to do it from sharepoint designer: ...
3
votes
3answers
266 views

How do you organize your sharepoint developments?

I am starting to do a lot of sharepoint development lately, and some of the things that I have done and I dont like is to use sharepoint designer directly for things like pagelayouts, lists ...
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
2answers
1k views

Logging into SharePoint through C# programatically

I am trying to login programatically to a SharePoint app and get the HTML code of specific page within that website. Is there a way how I can do that programatically? I am having problems with the ...
3
votes
4answers
2k views

Change default welcome page

How to do the following but with code? my page name is actnow.aspx click the "Site Actions" menu bar, select "Site Settings" and then click on "Modify All Site Settings". Under the "Look and Feel" ...
3
votes
1answer
266 views

SharePoint 2010 development practices

We are a group of ASP.NET developers who are new to SharePoint and we are starting fresh from SP 2010 with no prior experience with 2007. I am trying to figure out how to implement the SW development ...
3
votes
1answer
564 views

C# using REST to update a list item in an ASHX page

We have an existing ASHX page in our 2010 farm that users hit to pull in some RSS data. I'm wanting to do some tracking on the usage of this page. I don't want to IIS log parse for this so my thought ...
3
votes
2answers
138 views

Where to store data needed by a custom timer job?

I have a custom ribbon button in each document library and when a user clicks it, I'd like to store some library-related data (URL, id ...) in a way that would make it available to a custom timer job. ...
3
votes
2answers
341 views

CAML query for sharepoint list not working

I have a CAML query where I am getting records between a date range for a sharepoint 2010 list through an asmx web method call. It looks like this ...
3
votes
1answer
281 views

Check- in & check-out files using client object model

As the title says, how can I Check- in & check-out files using client object model?
3
votes
1answer
113 views

Usage of RootWeb property instead of OpenWeb method

I am referring a SharePoint book and I found the following code snippet in an example in that book. using (SPSite mySiteCollection = new SPSite(mySiteUrl)) { using (SPWeb mySPSite = ...
3
votes
3answers
1k views

How to create Site (SPWeb) on Sharepoint Online

I have a problem creating Sites on Sharepoint Online. The code that works on-premise do not work on Sharepoint Online. I do not want to bother you with the code, i just want a clean start. So my ...
3
votes
1answer
428 views

Share Point Timer Job Not Executing Code In Overriden Excecute Method Of SPJobDefinition

My goal is obviously to exceute some code periodically through SharePoint and I cant get it to work correctly. I started off by creating an empty sharepoint 2010 project(farm solution). Then, I added ...
3
votes
1answer
1k views

how to check if a webpart already exists on a page or not

I am adding three webparts with different titles to a given page url, but I need to check if webpart is already on page or not, here is the code i am using atm to add webpart to the page. using ...
3
votes
2answers
402 views

What's the preferred way to cache .NET objects in SP Foundation?

I have a SharePoint 2010 Founation (farm) solution scoped at the site collection level. What I'd like to do is cache some of my custom .NET objects so that the page requests can be processed faster. ...
3
votes
1answer
273 views

Development environments offered from the cloud

Would cloud based development servers be a valid alternative for local development environments? The cloud based dev environment might consist of a separate physical SQL server, and a SP dev image ...
3
votes
1answer
55 views

Adding files to a deployed feature

How do you add new files to a feature that have been deployed? Are there any gotcha's that you need to worry about?
3
votes
1answer
239 views

Structure of a WSP file

After you save a site as template you get a WSP file that you can then import in VS and tweak it as you want. I did this for a site today and had a lot of things in the WSP after I decompressed it, ...
3
votes
2answers
468 views

Deploying a Web Part to a single Site Collection using WSPBuilder

I am working with Visual Studio 2008 with the WSPBuilder add-in, and WSS 3.0. When I create a Web Part feature and deploy it to my SharePoint site, it is available to every site collection in the web ...
3
votes
4answers
11k views

Error message: “A sharepoint server is not installed…”

Im trying to develop a Visual Web Part using Visual Studio 2010 RC. I have not installed SharePoint 2010 locally on my developer box, but I have installed it on my Windows 2008 Server VPC. When I try ...
3
votes
1answer
62 views

Access Selected Items from List View

The following returns selected items correctly from standard list and document library types. var context = SP.ClientContext.get_current(); var items = ...
3
votes
2answers
80 views

Getting spuser from multiple types of information

If this sounds confusing it's because I'm al little confused on it myself. Basically I have an application (originally written by someone else but never finished) that needs to perform various actions ...
3
votes
2answers
1k views

Custom Page Layout in Sharepoint 2013 Foundation

Sharepoint comes with a set of Text Layout Templates. How can I create my own custom Text Layouts under Sharepoint 2013 Foundation. What I'm trying to achieve is a shown below. PS: I do not have ...
3
votes
2answers
113 views

.NET forms for SharePoint 2010 without InfoPath

Afternoon all, Can anyone advise if it's possible to create forms for SharePoint 2010 Standard (to submit to a list) without using InfoPath? My version of the product doesn't have InfoPath Services. ...
3
votes
5answers
3k views

SharePoint 2013 Standalone VM for Development good enough?

I'm building a VM for SP 2013 development. Will be developing Solutions, WebParts, Custom forms, Dataviews, Business Data Connectivity, Custom Fields, inline Jquery, SSRS reports for deployment into ...
3
votes
2answers
5k views

how to give Role permission to list programmatically?

I have set my web permission to Inherit Permissions as well as Lists.and programmatically i have add SPUSER to web with assigned 'Restricted Read' access Role. and also associate SPUSER to List1 ...
3
votes
1answer
1k views

Client Object Model - Update Document Library Metadata - Lookup Field with no required value

I am attempting to update metadata for documents in a document library (or List) using the client object model. I have whittled down a number of the error messages I was getting and now I am hitting ...
3
votes
2answers
5k views

How to upload/download document to Document Library via WEBSERVICES? Also set metadata

I want to retrieve a template document from a Document Libraries, in order to allow a user to edit it, and then upload it back again to the Document Library. I'll probably need to set some metadata ...
3
votes
2answers
469 views

Content Deployment and Migration API not importing no error thrown

The following http://blogs.technet.com/b/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-4.aspx provides the follwoinf code to import and ...
3
votes
2answers
6k views

How do I disable\stop or enable\start Sharepoint 2010 on my Windows 7 development machine

I used the SharePoint 2010 Easy Setup Script to setup my Windows 7 machine for Sharepoint Development. However, I don't want the Sharepoint services hogging up CPU in the background when I'm doing ...
3
votes
2answers
2k views

Copy file to sharepoint

Below is my method which is meant to copy a file from a folder on my desktop to the sharepoint document library shared documents. Its giving me error on SaveChanges method call, error shows me this ...
3
votes
2answers
499 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
4answers
5k views

Users denied access to site, but have proper permissions

I have looked through the various "similar" questions to this and haven't found a solution. Basically I have a SharePoint site that all users have access to correctly. The users can view this fine, ...
3
votes
1answer
470 views

Deploy an image in a feature

I am creating a feature which adds an option to the ECB. I want to have a custom icon/image. In my Visual Studio 2010 project I have created a TEMPLATE/IMAGES/proj folders. I have added my image to ...
3
votes
1answer
149 views

Can document views/metadata be 'live'?

We have a need for end users to see documents with additional 'live' columns, i.e. I would like to show a view of documents with employee id JOINED with data from sql server (for some additional ...
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
1answer
232 views

Time conversion via ClientContext

In native SP list I have item with datetime field which shows 24.1.2010. 00:00:00. When I try get it with ClientContext, I got that item field with the time 23.1.2010. 23:00:00. I understand that ...
3
votes
2answers
336 views

Using a shared DAL class library solution for a SharePoint farm

I was wondering what your thoughts were on a shared data access layer in a SharePoint farm. I am well aware of the implications of accessing the SharePoint content databases directly - I am referring ...
3
votes
4answers
1k views

Best way to get CAML for a custom content type

I am trying to get the CAML for a custom content type that I am creating. What I am really doing is creating the content type in Visual Studio 2010 and then deploying that content type to my sandbox. ...
3
votes
2answers
194 views

How can I create a web part for add update and delete operations?

I'm new to SharePoint and I'm working with web parts. I have learned how to create a basic webpart and how to deploy it...but I don't have any ideas about how to create a web part that adds updates ...
3
votes
1answer
178 views

2013 Collaboration - How to programmatically get a list of all the community sites a user has access to?

Is there a way to get a list of all of the community sites that a user has read/write access to, using an API that can be easily consumed by C#? We would like to get a list of all of the community ...
3
votes
1answer
53 views

How to use Application Pages for a content type's form

I want to use a custom application page for my workflow task view/edit form, I searched the internet and find it is possible to set url for content type's edit/view form, my code to update task's form ...