February 2009 Entries

One thing I run into all the time, after a clean OS install is finished, what are the next steps.

Install .Net 2.0, 3.0, 3.5.

Turn on IIS.

Allow .Net 2.0 in IIS, but this requires you have run

c:\windows\Microsoft.Net\Runtime\Framework\v2.0.50727\aspnet_regiis.exe –i

Then you can continue with the install.

This is nothing new, this problem has been around since SPS2003, but in case it helps someone.

I ran across this again the other day, and thought to blog it in case I needed to look it back up again.

When you need to get a list of the installed languages on a SharePoint farm, there is a static collection:

SPRegionalSettings.GlobalInstalledLanguages

Which returns a SPLanguageCollection.  Loop through it to get your languages and codes.

See this MSDN page.

Cheers!

A productive day of puppy training, and tv watching. While coming up with more reporting ideas for the admin tool, site collection, sites, permissions, looking to really help the IT admin and such be able to make better decisions with a better view of their SharePoint implementation.

News just started to leak out about SharePoint Saturday being held in Atlanta, GA on April 18th 2009.  You can see the site here.

Not much content on it yet as far as speakers and content, but you know it will be focused on SharePoint.

Register soon!

DateTimeControl is defined in the SharePoint WebControls class as the other controls in this post series.

Working with the DataTimeControl is fairly straight forward, with a few gotcha’s. 

In my class, I have a Controls region with:
private DateTimeControl expirationDate;

In my CreateChildControls() override,
expirationDate = new DateTimeControl();
expirationDate.ID = “expirationDate”;
//We only want to capture the date, we can ignore the time
expirationDate.DateOnly = true;
Controls.Add(expirationDate);

Now, when I am checking the value of this control, there are two things to note, the SelectedDate field contains my data, BUT it is always set to Today!  You have to do one other thing…
if (!expirationDate.IsDateEmpty)
{
  //Now we can update our list item
  listItem[“expirationDate”] = expirationDate.SelectedDate;


Well, that was a pretty easy one, but a couple of these steps can save you a lot of time.  Enjoy!

A link to the MSDN site for this object is here.