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
4answers
1k views

SharePoint -access to path is denied

I am working in SharePoint 2010. My requirement is to create folder inside SharePoint layouts and create a file inside that folder. Also I need to access the file for a current logged in user. ...
31
votes
6answers
17k 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" ...
37
votes
61answers
6k 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!
6
votes
12answers
1k 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?
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 ...
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 ...
4
votes
5answers
15k 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
5answers
2k views

What is the difference between SPContext.Current.Web and SPContext.Current.Site.OpenWeb()?

My colleague found that some scenarios of working with SPWeb objects depend on how you obtain them. I'm not talking of impersonating with UserTokens - that another story. But at times when you write ...
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 ...
8
votes
1answer
1k 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, ...
6
votes
3answers
1k 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 ...
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 ...
4
votes
1answer
3k views

Can the zoom/scale on JS Grid conrol in gantt mode be changed?

I have created a webpart with a JS Grid control with gantt enabled. I want the gantt view to display months instead of weekdays. Anyone have an idea how to do this? Update: The following link is what ...
4
votes
4answers
2k views

Tips for starting SharePoint development

I'm going to start developing SharePoint applications and I'm looking for some good introductory resources (articles, videos, books, dev tools, tips). I'm comfortable with C# and ASP.NET development, ...
4
votes
2answers
2k views

Sharepoint 2010 ModalDialog title

I am creating a popup window in sharepoint using this code in javascript. function openDialog(title, url, width, height, CallResult) { var options = { url: getUrl(url), title: title, ...
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
2answers
5k views

How do I get the url for attachments on an SPListItem using C#?

I have an SPListItem for which I would like to get the urls of all its attachments. The urls will be used as part of my custom web part which has an SPList of SPListItem items.
2
votes
1answer
3k views

Does Update-SPSolution trigger a SPFeature.Upgrade()?

I'm looking into Feature versioning and upgrading in SharePoint 2010 and I don't know exactly if the Update-SPSolution cmdlet triggers a SPFeature.Upgrade(). Are <UpgradeActions> elements ...
1
vote
2answers
562 views

Moving Document Libraries within same Site Collection using C#

I have C# code for Moving Document Libraries and its Items within same Site Collection maintaining its Metadata like "Modified", "Modified by" etc. Can anybody modify this code to move an entire ...
1
vote
1answer
765 views

Getting Web Template Not Found error while importing

I am importing a exported site with several sub-sites to a new Site Collection of its Own but getting following error Start Time: 8/9/2012 9:32:31 AM. Progress: Initializing Import. ...
1
vote
3answers
1k views

Can you programmatically add comments to an append-only comment field in a custom item list using C#?

I understand that you can access comments in an append-only field like: public string retrieveComments(SPListItem item) { SPListItemVersionCollection versions = item.Versions; ...
1
vote
3answers
966 views

How to work in Sharepoint 2010 Team based development

We have following environment to create a publishing fully branded portal. Three developers each one have sharepoint 2010 installed on their workstation. One Server so that when each dev finish its ...
0
votes
1answer
371 views

importing a site to a new site collection error

I tried using STSADM to export / import a site definition, it exported properly, but when i tried to import it, it gave me fatal error that couldn't find a webtemplate #id** with LCID 1033, both ...
3
votes
6answers
4k views

ArgumentException when trying to access SPListItem value

I have a tool to update all items in SP (link replacement). The tool works most of the time but sometimes it throws me an ArgumentException ("Value does not fall within the expected range."). Here is ...
1
vote
1answer
57 views

How to edit web part from wsp solution

I have wsp files that contain some web parts that I need to change the functionality of. Without the actual solution or project files, using just the wsp, is it possible to edit them? I changed the ...
1
vote
2answers
451 views

how to have connectable web part on two pages?

I have two connectable webparts but i want to have them on different pages is it possible? If it is , how to i solve this?? public interface IData { string Mydata { get; } }
1
vote
2answers
684 views

Couldn't find any way of displaying a message box in Visual Webpart 2007 (User Control)

I almost tried everything I could to display a nice message box in user control (.ascx) or code behind, but I failed miserably, Can anyone find me a tutorial in context to what I need and will 100% ...
1
vote
2answers
230 views

SharePoint InfoPath formviewer part

I followed the Code protected override void CreateChildControls() { XmlFormView formView; formView = new XmlFormView(); formView.Width = ...
0
votes
2answers
225 views

How many element can List have to work effectively

I must do a project with 360000 element's on list. Are the list can geret with it ? How make fast a queryes on the project ? Where shall I put indexes, and should I made a orderby on Query CAML? ...
0
votes
1answer
469 views

Showing the tab on button click

Basically my questiong is regarding the ribbon. So I want to have the following behaviour, when a person clicks on the button, the contextual ribbon tab should be opened. Any idea how to do that? I ...
0
votes
3answers
3k views

How to close an infopath form in C# style?

I tried XDocument.View.Window.Close(true); but it tells me "The name 'XDocument' does not exist in the current context" I even tried thisXDocument.View.Window.Close(true); but still same error. What ...
0
votes
1answer
5k views

An example of databinding the repeater control?

I am trying to develop a custom visual web part to display the latest 5 announcements with the images that are attached from the OOTB announcement lsit.I have a repeater control with an Item Template ...
6
votes
5answers
9k 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
7answers
602 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 ...
9
votes
9answers
5k 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
2answers
461 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; ...
1
vote
1answer
999 views

How to impersonate specific user in sharepoint foundation by code

I'm trying to impersonate another user by code.. I know in Sharepoint Enterprise there's a method which uses the UserProfileManager to impersonate... I wrote down this "trace code" without know if it ...
11
votes
2answers
6k 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. ...
7
votes
4answers
4k views

Automatically add pssnapin Microsoft.Sharepoint.Powershell

I am developing in Sharepoint and I like more Windows Powershell than Sharepoint Management Shell. Every time I restart the development machine, I have to run Add-PSSnapin ...
6
votes
2answers
629 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 ...
4
votes
5answers
3k views

Disposal of SPWebs created using SPSite.OpenWeb()

After reading some answers/comments on Disposal of SPWebs retrieved from SPContext.Current.Site.AllWebs, I opened up Reflector to dig deeper into the SPSite and SPWeb classes. I ran into a surprise, ...
3
votes
2answers
2k views

SP 2010 Custom Access Denied Pages - 403 error

I've used the following powershell script to change the default access denied page for my web Application: Set-SPCustomLayoutsPage -Identity "AccessDenied" -RelativePath ...
12
votes
2answers
13k 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"]); ...
5
votes
5answers
975 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
4answers
9k 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 ...
4
votes
3answers
2k views

How to add event receivers to all the lists in a site collection?

What is the best practice around adding event receivers across all the lists in a Site Collection?
4
votes
4answers
802 views

Add a Web Part Zone to “My Newsfeed” Page via PowerShell

I've done a fair amount of looking into this idea without promising leads. Let me define my problem: I need to add a third column (as a Web Part Zone) to the "My Newsfeed" page in My Sites. The ...
3
votes
2answers
2k views

change the default tile size in Sharepoint 2013

Hello, I create an app using the Promoted Links in Sharepoint 2013. I chose to do this because the feature has the awesome hover effect and is easy to customize the image. The issue is that I ...
3
votes
3answers
909 views

How to bulk import User Profiles from a legacy system and pre-create MySites

I need suggestions how to accomplish one upgrade task. I have list of user accounts in .csv file which I need to import to SP2010 and create user accounts with appropriate attributes. Also this ...
2
votes
2answers
156 views

Unable to Delete Custom Master Page Programmatically During Feature Deactivation 2013

I currently have a custom master page that is being deployed at the Site scope. Once deployed and the feature is activated it makes the master page available for use. I am able to activate the ...