Blog Home  Home Feed your aggregator (RSS 2.0)  
My DasBlog! - Thursday, June 30, 2005
newtelligence powered
 
# Thursday, June 30, 2005

At the blog SharePoint from Scratch an article is posted which describes a ways to delete a personal site in SharePoint. As you know the personal sites exists only in the database and uses the same aspx files. The following walkthrough finds the correct url for the personal site and makes it possible to delete it through the "Site Administration".

  • Click on Site Settings.
  • Under User Profile, Audiences, and Personal Sites click Manage Profile Database.
  • Click  View User Profiles
  • Search for yourself, hover over your name and select Manage Personal Site.  At this point you could get the error User Has Not Create a Personal Site.
  • Look at the URL: http://MyPortal/personal/MyUserName/_layouts/1033/settings.aspx
  • Now you can add anyone's username to the URL and get the site settings for that user.
  • From there, you can click on Site Administration and the Delete This Site.

http://sharepointblogs.com/spfromscratch/archive/2005/06/29/2311.aspx

Thursday, June 30, 2005 7:19:51 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 
# Wednesday, June 29, 2005

Tim Heurer pointed out to us that there are free virtual labs and webcasts available for during your lunch hours. You can find them at www.lunchwithmicrosoft.com.

http://timheuer.com/blog/archive/2005/06/29/2335.aspx
Wednesday, June 29, 2005 3:58:25 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   Learning | Microsoft  | 

My collegea Mart wrote an article about the last modified date of a WSS site. The SPSite class has a property called LastItemModifiedDate returning the last date of modified content. If the method GetSubwebsForCurrentUser is used this property does not contain a value when used for the root web. The following definition of both members is found in the MSDN library:

 

LastItemModifiedDate
property of the SPList class gets the date and time that an item, field, or property of the list was last modified.

LastContentModifiedDate
property of the SPSite class gets in Coordinated Universal Time (UTC) the date and time when the content of the site was last changed.

 

Mart and Tariq give us a solution for this problem by getting the SPVirtualServerCollection of the SPGlobalAdmin and then looping through the Sites collection per SPVirtualServer. The property LastContentModifiedData is filled in. :)

Thanks guys! I'm gonna need this in one of my next projects

http://blogs.tamtam.nl/mart/SharePointTipLastItemModifiedDateAndLastContentModifiedDate.aspx

Wednesday, June 29, 2005 3:36:51 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 

The support for additional languages under WSS is larger then for SPS. It is possible to install additional languages next to the selected language at installation. When creating WSS sites the user can choose from the installed languages. See following article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;555106

This is a link to an add-on package for WSS giving allowing the users to create WSS sites in other languages then the default language at installation.

http://www.microsoft.com/downloads/details.aspx?FamilyID=e7eec77d-4365-4b66-8e8d-9d079c509679&DisplayLang=en

Wednesday, June 29, 2005 10:52:09 AM (GMT Daylight Time, UTC+01:00)  #    Comments [4]   SharePoint  | 

Tom van de Kerkhof has written a very cool WebPart which makes it possible to change your active directory password through a WebPart. It uses the SmartPart written by Jan Tielens. More information about SmartPart can be found at www.smartpart.info.

You can download the WebPart at his blog. :) My compliments!!

http://www.blogs.jpworks.be/Tom/PermaLink.aspx?guid=983ea9cf-3b9b-416e-8a49-d1152c7af60c

Wednesday, June 29, 2005 8:31:43 AM (GMT Daylight Time, UTC+01:00)  #    Comments [1]   SharePoint  | 
# Thursday, June 23, 2005
One of my collegea likes to have pop quizes about C# programming snippets. One of the questions he gave us yesterday was the following. If you have two classes class A and class B implementing the same interface and class A is derived from class B and you would cast an instance of class A to the interface which method is called. The one of class A or class B. It is actually very simple...
Thursday, June 23, 2005 8:55:19 AM (GMT Daylight Time, UTC+01:00)  #    Comments [1]   C#  | 
# Wednesday, June 22, 2005

Jan Tielens has posted a nice article about adding WebParts to a WebPartPage programmatically in SharePoint. In his article he discusses two scenarios to accomplish this.

  • First scenario is getting the is creating a new WebPart (in his case a ListViewWebPart) and adding it to the SPWebPartCollection.
  • Second scenario is building a XML string containing the information about the WebPart and use the SPWebPartCollection to add this string.

http://weblogs.asp.net/jan/archive/2005/06/22/414283.aspx

Wednesday, June 22, 2005 4:09:16 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 

At the blog #region /* mads's thoughts */ an important article is found called "COM objects need tight leash". It gives an example of increasing memory usage when working with the SharePoint object model and th Office interop components.

In that case it seems that the Garbage Collector was cleaning up the managed references which were wrappers around COM objects and these COM objects were not cleaned up.

I have had a similair problem in the past writing wrapper classes in C# around C++ unmanaged code. The unmanaged code was not cleaned up by the garbage collector ofcourse and you had to do that yourself.

http://weblogs.asp.net/mnissen/archive/2005/06/22/414247.aspx
Wednesday, June 22, 2005 10:50:05 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   .NET | C# | SharePoint  | 

It never hurts to mention this again. Be very carefull when calling the Dispose or Close method on SPSite or SPWeb objects. If the object is a shared resource it will give you a nasty "access violation error". For example never do the following:

SPSite site = SPControl.GetContextSite (this.Context);
// Code to perform a task
site.Dispose ();  -> WRONG

SharePoint will dispose the object if needed so never call the Dispose method in this case. If you create your own SPSite or SPWeb objects you can use the Dispose or the Close method for these objects. In case you're referencing the object never ever call the Dispose or Close method.

See the article referred to below:

http://www.kbalertz.com/kb_901259.aspx

Wednesday, June 22, 2005 9:57:18 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  | 
# Tuesday, June 21, 2005
Copyright © 2012 Alexander Meijers. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: