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...
 
Jul20

Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances.

Categories: ASP.NET 2.0
Recently I noticed that many of my ASP.NET applications that work with a SQL Server Express database that resides in the App_Data directory stopped working. The culprit error was "Generating user instances in SQL Server is disabled. Use sp_co...
 
Jul18

How to change the connection string name in a .NET 3.5 LINQ to SQL class?

Categories: ASP.NET 2.0
Here's the scenario:   You developed an application that uses "LINQ to SQL" with a connection string name (say aa-db). In production you want the name to be different (say bb-db). What do you need to do to change the connection string...
 
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...
 
Jul2

What is an easy way to find out the internal name of a SharePoint 2007 list column?

Categories: SharePoint 2007
The internal name of a SharePoint list column can be different from the display name. This could happen if a column name has been renamed to something else. For example, if you rename the "Title" column to, say, "Company Name",...