Friday, October 24, 2008
Sharing Points { }: Moving MOSS 2007 Content Database by STSADM Command-Line Tool
Sharing Points { }: Moving MOSS 2007 Content Database by STSADM Command-Line Tool
Friday, September 26, 2008
Working with TreeView Control in C#
Wednesday, September 24, 2008
Brian Wilson! : Event Handlers - Part 3: Register Event Handlers plus free Site Settings – Manage Event Handlers Add-on solution
Brian Wilson! : Event Handlers - Part 3: Register Event Handlers plus free Site Settings – Manage Event Handlers Add-on solution: "Managing EventReceivers using Site Settings application assemblies"
Monday, September 22, 2008
Increase your Virtual machine's disk size
Thursday, September 18, 2008
SQL 2008 Design Table change requires a DROP TABLE?!? - TechNet Forums
Here is the answer:
Re: SSMS 2008 Table change requires a DROP TABLE?!? - TechNet Forums: "Answer Re: SSMS 2008 Table change requires a DROP TABLE?!?
There is an option under Tools - Options - Designers - Table and Database Designers where this can be changed. An option that says roughly 'block saving changes that require recreating tables' (mine is in a different language, so this is a translation) must be checked by default in the Developer Edition.
Friday, September 05, 2008
e-office - Release: Content By Type web part v1.2
SPContext.Current.ListItem returns Nothing...in some environments : SharePoint - Development and Programming : SharePoint Products and Technologies : MSDN Forums
Thursday, September 04, 2008
Adding an item of a specific contenttype to a list - Ton Stegeman [MVP] weblog
Adding an item of a specific contenttype to a list
This previous post shows how you can create content types in code. The code in this post will show you how you add an item to a list and set the contenttype for that item. An SPItem object has a property called ContentType, but you cannot use that, because it is readonly.
The code to do this looks like this:
SPSite site = new
SPSite("http://myportal/testsite");
SPWeb web = site.OpenWeb();
SPList list = web.Lists["ContentTypeTest"];
// We first check if the contenttype is available and then use the id.
SPContentType contentType = web.AvailableContentTypes["Proposal"];
if (contentType != null)
{
SPListItem item2 = list.Items.Add();
item2["ContentTypeId"] = contentType.Id;
item2["Title"] = Custom contenttype, set from code!";
item2.Update();
}
Inserted from <http://www.sharepointblogs.com/tonstegeman/archive/2006/08/06/adding-an-item-of-a-specific-contenttype-to-a-list.aspx>