Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [best-practices]

A "best practice" is a method or process that practitioners recognize (usually through experience and research) as being more effective at getting the job done than other methods (or processes).

4
votes
1answer
3k views

Can we access list from other site collection sites using javascript object model?

ECMAScript object model can only be used in SharePoint sites. So you can’t use this object model in an asp.net site to access SharePoint resources deployed in another url as this is cross-site ...
0
votes
1answer
1k views

SQL TempDB size

I've read it on a number of different sources, and saw it presented by multiple people at different events: "Temp DB should be pre-sized to 20% of your biggest content" As I'm doing a 2010 farm ...
0
votes
1answer
215 views

Coding best practice display name vs internal name in itemUpdated event receiver

In an itemupdated event receiver, when referring to list fields, is it better to use the field's internal name, or its display name? Is there a clear guideline or best practice, or is this a ...
0
votes
2answers
1k views

Do we need separate Unattended service account for each SharePoint Server 2013 BI service applications?

SharePoint 2013 - I'm planning to use 'unattended service account' method of Secure Store Service - for Excel, Performance Point and Visio services. I'm about to create Active directory accounts for ...
1
vote
2answers
2k views

New-SPContentDatabase vs Mount-SPContentDatabase

We pre-create our SharePoint content databases in SQL, so we can distribute database files among disks and tune some parameters on the SQL Server side. Then we convert the SQL databases into ...
0
votes
1answer
1k views

Keep major version when working on minor version

My situation is this; I have a document library that contains reports (InfoPath 2010 forms). When an item is submitted it should clearly be marked as un-approved until it has passed an approval ...
3
votes
2answers
4k views

Web Application or Site Collection Architecture for My Sites in SharePoint 2013

I am designing a solution for our client which have the following 'Areas' Teams Committees My Sites Projects (MS project server) Apps I see the best approach is creating a Web Application (WA) for ...
0
votes
1answer
41 views

What is the proper method for installation of a team site with custom solutions?

What is the proper method for installation of a team site that has parts and webparts configured using PowerShell as well as six custom C#.NET applications for select webparts? Should I make a ...
0
votes
1answer
131 views

Best practice in SP2013 for simple ASP.NET functionality?

Disclaimer: I am not a Sharepoint developer, but I know my way around ASP.NET fairly well. I have inherited a simple ASP.NET web forms page (one .ASPX and a code-behind) in our current Sharepoint ...
0
votes
1answer
336 views

Dependencies in the jscript file

Lets say, I have custom-dialog.js that depends on custom-notifier.js and this one depends on sp.js. What's the best practises to write dependencies inside mine custom .js files?
1
vote
1answer
3k views

Are there best practice or coding standards documents available for SharePoint

Is there any official Microsoft coding standards and best practices documentation for SharePoint?
0
votes
1answer
3k views

Distributed Cache Service Accounts

Recently saw a health warning in my 2013 CA that stated: The farm account is used for the SharePoint timer service and the central administration site, it is highly privileged and should not be ...
12
votes
2answers
2k views

“Best Practices” for SharePoint customizations/development to easily migrate to new SharePoint versions

Do you know of any documents that describe “best practices” for SharePoint customizations (especially custom developments) in order for these customizations/code (for example web parts, event ...
0
votes
2answers
158 views

Sharepoint Development Process Best Practices

I would like to ask some simple questions regarding the best practices of Sharepoint 2010 development process. 1) I am supposed to maintain and add new sites to an already installed Sharepoint site. ...
7
votes
2answers
278 views

Best Practice changing usernames for Sharepoint 2010

We are using SharePoint 2010 Enterprise and have a User Profile service set to synchronize against AD DS. When a user's username changes, because of marriage or mis spelling, there are a set of ...
19
votes
1answer
4k views

Is Calling base.ItemUpdating(properties); necessary?

In an event receiver, is it necessary to call base.ItemAdding(properties);, base.ItemUpdating(properties);, etc. at the beginning of your event handler? I've seen people arguing that it isn't ...
5
votes
2answers
1k views

Instantiating SPListItems in Event Receivers - Best Practices

In the MSDN article Best Practices with Event Receivers it is clearly stated: Do not instantiate an SPWeb, SPSite, SPList, or SPListItem object within an event receiver. The article goes on to ...
3
votes
1answer
450 views

Should this be a sandboxed solution?

My company outsourced the creation of a SharePoint WebPart for connecting to our cloud service. The WebPart connects to our service by using our REST API. When configuring the WebPart you supply ...
1
vote
0answers
100 views

Customizing social features in 2013

I'm looking at making use of the social features in 2013 but would like to tailor the UX / behaviour in some cases. I noticed that Microsoft advise against customization - http://www.cmswire.com/cms/...
3
votes
2answers
4k views

Best way of getting SPWeb in Event Receiver [Best Practices]

what would be the best way of getting SPWeb and List in context below, specially when list title can be different for different cultural websites, private bool doesItHaveIt(...
0
votes
1answer
387 views

Auto-Update Statics On/Off

MS recommends disabling auto-create statistics on SP DBs (ref). What about auto-update statistics? Looking at our TFS installation, for the SP DBs, these two options are disabled for you when TFS is ...
1
vote
1answer
11k views

How to run a popup window from code behind in web Part writen in C#

I must run a popup warning when somebody exceeds some value. I tried a SharePoint Modal Popup using JavaScript, but I don't know how to run something from code behind with JavaScript and a SharePoint ...
0
votes
2answers
1k views

Best practice for public facing website

I am getting lost in the Sharepoint universe and I need someone to point me in the direction of an easy guide to setting up a public facing website collection following best practice. We have ...
5
votes
3answers
3k views

Dynamically registering JavaScript from within a sandbox web part

I am mid-way through development of a corporate intranet that will be hosted in SharePoint Online. For this reason, we are restricted to using sandbox solutions. One of the last "gotchas" that I need ...
0
votes
1answer
1k views

Add documents to library or assign them to items?

We have a checklist for projects, this list is represented as a project tasklist so we can track to progress. At the moment we add documents to a document library on the same page, but this way they ...
0
votes
0answers
143 views

Proper way to get all lists of a certain type from an entire site collection regardless of current location

I'm creating a webpart that gives the user a feed of any annoucement list in the entire site collection, so they can aggregate data to a central portal. I'm currently using the following, but can't ...
1
vote
1answer
311 views

Webapp design for internet, intranet and extranet?

I am a beginner in Sharepoint and I must conceive a Sharepoint solution. I need to have an Intranet for employees as well as an access point for collaborators to a particular site in this intranet. ...
3
votes
2answers
3k views

Use SPQuery.RowLimit also on large lists with small query results?

I frequently read one should use RowLimit on SPQuerys on a large list, especially with more than 2000 items. Best Practices: Common Coding Issues When Using the SharePoint Object Model: An SPQuery ...
1
vote
2answers
2k views

UAT refresh best practices

The scenario is as follows: SP2010 production farm and UAT farm will have the same setup. As work items are pulled to production, and users add content and SP Designer changes to production, and at ...
2
votes
2answers
2k views

Reason people don't use SPContext when executing web.Lists[“ListName”].GetItems(query)

I'm building a Site Definition that will be the core of a SharePoint product. I want to use best practices building the data access architecture. Since I do not know what the URL of the site will be,...
1
vote
1answer
33 views

Setting up sites with lists and custom content types

I am creating a proof of concept at work. It will be creating a web applciation with a site collection in it. The site collection will have 1 or 2 custom content types and a few lists set up. I will ...
1
vote
2answers
1k views

SharePoint 2010 - Best practices: how to handle assemblies [Discussion]

There is a discussion which has been going on for serveral years when programming for SharePoint. In Visual Studio you can add a SharePoint solution, which will be converted to a .wsp file to deploy. ...
0
votes
1answer
96 views

Correct way to store and retrieve +2000 List items Sharepojnt 2007

So I've read all the whitepapers, and I know that you can store up to 5 million list items in a list as long as you use folders. What I'm after, is, has anyone written some nice recursion that gets a ...
0
votes
2answers
833 views

SP 2010 - to BLOB or not to BLOB?

Here is my situation: We are working on a scan-to-SP solution for our remote locations. The scanning will take place throughout the day/night. Our current estimated Total Daily Scans will number ...
1
vote
2answers
870 views

What are some best practices when using jquery for Autocomplete with ashx?

After doing some research I saw some examples using jquery's .ajax function and webmethods for autocomplete with ashx in Sharepoint. http://www.lifeonplanetgroove.com/blog/index.php/2010/10/15/adding-...
1
vote
1answer
2k views

Kerberos and applicationhost.config

One of our WebApplications is using Kerberos. Our devloper has said that we need to edit the application.config and change: <windowsAuthentication enabled="true" useKernelMode="false"> to <...
1
vote
1answer
151 views

What to do on feature deletion/deactivation

as I am trying to wrap my head around silverlight and sharepoint there's one thing I find most irritating: Provisioned xap-Files and/or web-Parts remain fully active upon deactivation/uninstallation ...
11
votes
1answer
23k views

Completely remove a WSP from SharePoint

What is the best way to completely remove a WSP from SharePoint? SO when you reinstall it again from scatch it thinks it is a clean install?
3
votes
0answers
1k views

Using SharePoint for an appraisal/360 process

We are thinking of using SharePoint 2010 for an appraisal/360 process. The workflow is simple. HR Create appraisal for users User fills it in Manager fills it in User accepts appraisal Manager ...
1
vote
1answer
2k views

Best practices of custom field types in SharePoint 2010 [closed]

From your experience, what are some of the best practices around custom field types, their creation, deployment and maintenance. I am finding little on this topic online.
7
votes
3answers
6k views

WebPart where to store a connection string

I have a webpart that connects to an external DB. I need somewhere to store the connection string. It is possible for this data source to change but would always be the same for the site collection ...
6
votes
4answers
5k views

Working with large external lists using BCS

I have a database that I want to display the content in SharePoint 2010. I am not displaying the content in a list but am using a custom WebPart. The database is not updated any more as it is ...
0
votes
2answers
2k views

What are the top SharePoint list best practices?

I am looking for specific best practices around naming conventions and cross site list querying (site collection & subsite). I am not finding a lot of resources on these topics and assume this ...
1
vote
1answer
121 views

Create Display form that reads the current language of its parent

Im working in sharepoint server 2010, with Arabic language pack installed my current structure for the sharepoint site like the following: one SiteCollection: --------> one English ...
0
votes
2answers
2k views

How should I set up my database instances for multiple SP2010 installs?

I'm setting up three SharePoint instances. We have a single database instance (DB\SP2010) that will hold all the databases for these three SP instances. Will this be overly confusing? Is there some ...
19
votes
4answers
15k views

Best way to Impersonate in SharePoint

So far, I am aware of below 3 ways of performing impersonation in a SharePoint web part or page : Using Win32 API [DllImport("advapi32.dll", SetLastError=true)] public static extern bool LogonUser(...
4
votes
1answer
4k views

Search Crawling Frequency

For Search, How often should you perform an incremental crawl? I was thinking of doing it every two hours? Is that too often? Are there any best practices in terms of frequency of searching?
2
votes
1answer
283 views

Migrate Web Applications or migrate Site Collection from Development to Live

I have a Web Application in development with 7 site collections. I need to get them all into my production environment. No Web Application exists in production. Is it best to backup and restore the ...
2
votes
2answers
121 views

Migrating site collections from developemnt to live

I have several site collections that have been created in development. I now need to move them to live. In the live environment these site collections do not exists. What is the best way to migrate ...
3
votes
1answer
301 views

Best Practice to handle items modification in SharePoint 2007

From my understanding, there is no checkout function inside a SharePoint 2007 List. So, what is the best practice that SharePoint Professionals and Expert do to make sure that a item of a SharePoint ...