The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.
5
votes
1answer
232 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 ...
5
votes
2answers
915 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;
...
5
votes
4answers
204 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
4answers
986 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 ...
5
votes
2answers
992 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 ...
5
votes
3answers
2k 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 ...
5
votes
3answers
284 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 ...
5
votes
2answers
638 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 ...
5
votes
1answer
343 views
Client Object Model SystemUpdate
I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist.
Another solution would be to disable the ...
5
votes
1answer
432 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, ...
5
votes
1answer
342 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
5answers
2k 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
7k 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 ...
5
votes
5answers
3k 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
5answers
690 views
Customize a Delegate Control in SharePoint 2010
I created a simple project to Customize a Delegate Control in SharePoint 2010 such as in msdn article (http://msdn.microsoft.com/en-us/library/ms470880.aspx).
Source code:
Class:
using System;
using ...
5
votes
2answers
795 views
SharePoint 2007/2010 Custom Access Request Page
Does anyone know were to start to create a custom Access Request Page or how to modify the default behavior.
We would like to use our own workflow behind the Access Approval for a specific site ...
5
votes
1answer
357 views
SPMetal and automated build approch
When using SPMetal to generate entity classes, these classes are used in LINQ to SharePoint queries.
We have a project with content type and list definitions and one project with business logic which ...
5
votes
3answers
145 views
Keeping VM images consistent across development team
In trying to keep VM images consistent across our development team we need to ensure that SharePoint groups/users/permissions/audiences etc stay in sync as part of our CI process.
Can anyone suggest ...
5
votes
1answer
108 views
SharePoint library, targeting both sandboxed and farm solutions?
I'm planning to build a shared librarie toolbox for my customer. The idea is to factorize reusable code in a single utility framework.
Some of the classes can run on Sandboxed solution, other ...
5
votes
1answer
1k views
Programmatically add quick launch link to a modal dialog box
I have implemented a feature that once activated adds a heading called Home, and a link underneath to a NewForm.aspx like such:
// Add Home node
var mainListsNode = new SPNavigationNode("Home", ...
5
votes
1answer
893 views
SPList.GetItems query returning an invalid SPListItemCollection. What am I doing wrong?
I'm trying to query an SPList object using a CAML query (see code below).
SPQuery queryGetExistingTargetTask = new SPQuery();
queryGetExistingTargetTask.Query = ...
5
votes
2answers
1k views
OpenWeb throws a HRESULT: 0x80131904 exception in SharePoint 2010, but works fine in a Console app. Why?
While debugging, the site looks fine, it's just web that doesn't load okay. Can't figure out why. Throws generic exception when attempting to access a property: HRESULT: 0x80131904
Any thoughts?
...
5
votes
1answer
608 views
Can't get OfficialFile.SubmitFile to work
I'm trying to write a literal SOAP call (I'm integrating from a remote non-windows machine) to submit a file which currently resides in the drop-off library of the site. I created a simple file, ...
5
votes
6answers
2k views
How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
I've this WCF web service hosted inside a Sharepoint 2010 web application.
This service is created using the following factory:
...
5
votes
3answers
187 views
Can i build solutions for SharePoint Foundation and SharePoint Server on the same development machine?
My question is regarding the different SharePoint 2010 editions. Say I am running SharePoint Server on my development machine, since most of my solutions are made for SharePoint Server. If I should ...
5
votes
1answer
513 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 ...
5
votes
3answers
196 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 ...
5
votes
2answers
268 views
Is it possible to add custom actions to a version?
I need to add a custom action to versions of a file. Optimally, I want it on the Version History page:
A second best would be the version display form (the result of clicking View on the previous ...
5
votes
3answers
676 views
What happens to executing Timer Jobs when the Timer Services is restarted?
What happens to executing Timer Jobs when the Timer Service is restarted?
Does it abruptly abort any executing jobs? Is there an exception to catch (for example ThreadAbortException) in your timer ...
5
votes
3answers
648 views
Custom 404 Pages
I have followed Microsoft's instructions for custom 404 pages in SharePoint by setting the web application's FileNotFoundPage property. I am now still getting a 404 error if someone types a site ...
5
votes
3answers
807 views
SharePoint Web Serivces Access Denied; Only From VS 2010
After not getting much help on the last question, I decided to blow away the VM and re-create it as I already lost a week on this issue. And of course still issues, btu a little different.
I am ...
4
votes
7answers
524 views
What are all supporting tools commonly used by SharePoint 2010 development?
CAML Builder
SharePoint Designer 2010
CKS Development tool edition(server)
SharePoint Manager 2010
These are the tool which is used to make SharePoint development simpler. Can someone tell is ...
4
votes
4answers
756 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
10answers
2k 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
6answers
443 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
5answers
5k views
How to check if a user exists in a group
How can i check if a user (not the current user) exists in a group.
The SPGroup object allows to check if the current user is member of the group, but there is no method that checks if a SPUser given ...
4
votes
5answers
1k views
Thorough Sharepoint 2010 development book suggestion?
I'm looking for a developer's book that would be quite in-depth and works from the basics to advanced stuff without requiring previous knowledge of MOSS 2007.
I would like the book to explain basics ...
4
votes
4answers
2k views
SPItemEventReceiver ItemAdding - Differentiate between a file and a folder
I've setup a custom event receiver. The purpose of my event receiver is to stop people from uploading any file type except PDF's. Right now my code looks like this:
if ...
4
votes
3answers
1k 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
9answers
334 views
What are the best resources for SharePoint 2010 development?
What are the best resources for SharePoint 2010 development? Please do one answer per answer. Thank you.
4
votes
2answers
1k views
Moving a web part to a different zone on a page
How do I programmatically move a web part from one zone to another on a page? I have multiple sites that I want to loop through each site and update the page.
4
votes
4answers
1k 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 ...
4
votes
3answers
744 views
I'm trying to understang how AJAX and Sharepoint play together
I'm about to embark on a project whose goal is to take a Sharepoint wiki of documentation, and add an index as the left nav (right now, there's only search). As users click on an index item, the right ...
4
votes
2answers
221 views
Efficiently determine if a List is using item level security
How can you efficiently determine if any of the items in a List don't inherit their security from the List?
You could use SPListItem.HasUniqueRoleAssignments but this would require iterating through ...
4
votes
4answers
2k 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 ...
4
votes
3answers
746 views
call stsadm.exe programmatically (using System.Diagnostics.Process) doesn't seems to work
The title pretty much says it.
My target is to deploy a custom alerttemplates.xml to my SharePoint 2010 solution programmatically. Which would decrease the steps for an installation of the solution, ...
4
votes
4answers
5k 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 ...
4
votes
3answers
664 views
Unit testing web parts
I've read the articles from Andrew Woodward (21Apps) trying to get started with unit testing on WSS, but when I try something more advanced, like Webpart connections, I don't know how to start ...
4
votes
2answers
1k views
JQuery Accordion with SharePoint 2010 Custom List
I have a FAQ custom list in Sharepoint 2010 with two columns: Question (title column renamed) and Answer.
I want to display the questions and answers from the sharepoint list in JQuery Accordion. ...
4
votes
3answers
1k 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 ...