Reputation
25,957
Next tag badge:
95/100 score
56/20 answers
Badges
1 14 37
Newest
 Civic Duty
Impact
~1.2m people reached

2d
comment Delete Individual Items from Recycle Bin
I was thinking about the SPRecycleBinItem in the RecycleBin
2d
comment User Permissions: Shouldn't be able to edit pages, but add/update/delete documents
Yes. You have to break inheritance on either pages or documents.
2d
comment Delete Individual Items from Recycle Bin
Have you tried calling Delete on the Item instead of on the collection?
2d
comment Return search results from only 2 document libraries
The tutorial at http://tutorial.programming4.us/windows_server/SharePoint-2010---Configuring-Se‌​arch-Settings-and-the-User-Interface---Web-Parts-(part-1).aspx shows how to configure the Search interface. In part 2 it shows the 'Additional query terms'. UrlOfLibrary1 (and 2) is the real url of the list like http://intranet.contoso.com/sites/mysite/Documents
2d
comment Return search results from only 2 document libraries
Sorry should be site:
2d
comment how to allow Write-Host command to write into a file (notepad) rather than in the screen
Nice. One suggestion, use $linkObject = New-Object PSObject -Property @{"FileName"=$file.name; "Url"=$link.url} to create $linkObject in one simple line
2d
comment Calculated column problem from Multiple lines of text
You can create a SharePoint workflow in either SharePoint Designer or Visual studio. For the JavaScript solution, which I will only recommend if you can't do any of the "real" solutions, you would need to create your "calculated" field as an ordinary field, disable inline editing in all views and then customize the two forms to hide the "calculated" field and update it before submit
May
19
comment Event receiver on newly created site
No the only feature to that needs activation is the one with your Event Receiver make sure it's at Site Collection scope (Site in Feature.xml). And it should fire on any subsite created after that.
May
19
comment Event receiver on newly created site
@Ishani WebAdding happens before the site is created (at all) primary giving you the posibility of preventing the addition. WebProvisioned happens when everything has been created.
May
17
comment Provider Hosted App Web Part
Yes that's what provider hosted means. The App itself is purely configuration. If you need any form for pages (and you always do) then you need somewhere to host these. That can either be in an AppWeb site created as part of a SharePoint hosted web or somewhere else e.i. Provider Hosted.
Apr
27
comment Default download dialog box not appearing on click of a document link in a document library?
It should be part of ProcessRequest in PDFWatermarkHttpHandler when setting context.Response.ContentType
Jun
18
comment contents of file into an array powershell
The elements of the first array is strings and the name property of the last is strings, but as shown in the second you can force the first to be an array of strings
May
13
comment Sharing same SQL server for a SP2010 and SP2013 farm. Viable?
NOOOO, MaxDOP=1 was a requirement for SP2010, but not enforced. For SP2013 it's still a requirement and now it's also enforced
May
13
comment SharePoint 2013 App ideas
Both your examples could be made as Apps. Interacting with other systems may be hard if you're creating a SharePoint hosted app (pure JavaScript) due to security. But if you create a provider hosted app you have the full freedom/power of your environment which could be ASP.NET MVC (or WebForms) or whatever you want.
May
7
comment Create subsite in another site collection using event recievers
See the section I added on Office 365. Using WSS would mean changing from using Office 365 to host in a completely other environment. That's a whole other discussion.
May
7
comment Remove top link from Sharepoint online
With the "resent" rename of IDs in Office 365 the Suite_ prefix was changed to O365_. So it's a good practice to have both sets.
May
2
comment How to retrieve the OOB Xml field with powershell?
See addition to answer
May
2
comment How to retrieve the OOB Xml field with powershell?
Title is the fieldname shown in the UI. InternalName is the name after ows_ in the XML. StaticName is the same as InternalName unless it's changed by code. $site.rootweb.lists["User Information List"].Fields will give all the fields with this as attributes.
May
2
comment How to retrieve the OOB Xml field with powershell?
When you access $site.rootweb.lists["User Information List"].items[0] you get a SPListItem which has the Item property which you can use as $_['fieldname'] to get a fields value from Title, InternalName or StaticName of the field
Apr
28
comment Which is good practice to not activate the feature by default?
That's right when deploying through PowerShell, Central Admin, Code then it's only the ActivateOnDefault that's used