Jun24

How to unsubscribe (or remove) yourself from a SharePoint 2007 alert?

Categories: SharePoint 2007
In SharePoint one can subscribe to any document libraray or list to be sent alerts when changes occur such us additions, deletions, and updates. This is done by choosing "Actions" => "Alert Me".   If one wishes not to recei...
 
Mar6

Enabling Entity Framework (ADO.NET Entity Data Model) in a SharePoint 2007 web.config file

Categories: SharePoint 2007
The Entity Framework is considered to be the modern day successor to "LINQ to SQL". If you wish to use this technology in a SharePoint 2007 web part you will need to tweak your web.config file to accomodate the new assemblies that are as...
 
Mar3

How can you get the thumbnail for an image in your SharePoint picture library?

Categories: SharePoint 2007
This is much easier than I had imagined. At first I thought I need to do some programming with the SharePoint Object Model APIs. It turned out to be nothing of the sort.   Let us assume that you have a photograph located in your picture library ...
 
Nov26

Getting around SharePoint 2007 not allowing database Integrated Security

Categories: SharePoint 2007
The problem is becuase of a line in web.config in WSS root folder which is:   <tagMapping> <add tagType="System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ...
 
Nov26

Enabling security trimming using role attribute in web.sitemap

Categories: SharePoint 2007
I have figured out how to trim the menu items on the web page.I need to add the following element to the web.config file <siteMap defaultProvider="XmlSiteMapProvider" enabled="true"> <providers> <add name=&quo...
 
Nov26

Download tracking with WSS 3.0

Categories: SharePoint 2007
WSS 3.0 does not have a mechanism for tracking who downloads which files with authenticated users. When I got confronted with this task, I decided to create a web user control that reads all the files in a document library and subsequently display...
 
Oct22

How to programatically delete a SharePoint 2007 field belonging to a list or document library?

Categories: SharePoint 2007
Here's the code for deleting a field named "phone" in list "myList" on a site with URL http://mysite/:     try {    using (SPSite sitecollection = new SPSite("http://mysite/"))  {        using (SPWeb web = sitecoll...
 
Oct21

How do you break up a long SharePoint 2007 survey?

Categories: SharePoint 2007
What do you do if you have a long SharePoint 2007 survey and you want to break it up into separate pages such that the user needs to click the "Next" button?   Solution:   You must use branching on selected questions for this. All b...
 
Jul24

How to use built-in SharePoint 2007 engine to send email?

Categories: SharePoint 2007
A straightforward way of sending email from within a SharePoint 2007 application is to use the Object Model. Here is some C# code that will do it for you:   bool isAppendHtmlTag = true;bool isHtmlEncode = false;string recipient = "whoever@w...
 
Jul18

How to edit group on the SharePoint quicklaunch in WSS 3.0 (and MOSS 2007)?

Categories: SharePoint 2007
It is always a good idea to lock down SharePoint sites such that users do not see more information than they need to. At the organization where I work, we have a plethora of SharePoint groups. With any new website that gets created, a user with fu...
 
 Next >>