Error while archiving folder “Inbox” in Outlook: archive.pst could not be accessed.

November 2nd, 2011 by Christian No comments »

If you’re getting this error when trying to archive a PST in Outlook:

Error while archiving folder “Inbox” in store “Personal Folders”. The file C:\Users\[User]\AppData\Local\Microsoft\Outlook\archive.pst could not be accessed.

Then check if your C:\ has run out of space ;)

Sharepoint: Reserved Keyword id in QueryString

October 27th, 2011 by jason No comments »

This is a caveat which may save you hours of pulling your hair out and/or banging your head against the wall.

When passing paramaters via the querystring in any sharepoint webpart user control , the term “id” is reserved, and any functionality depending on this querystring parameter will break.

» Read more: Sharepoint: Reserved Keyword id in QueryString

Great tools we’re using right now…

October 26th, 2011 by Christian No comments »

I will be maintaining this blog post on an ongoing basis, but here are a few very smart tools and “ways of doing things” that we’re either using right now – or will be using when the opportunity next presents itself.

Twitter Bootstrap

“Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.
It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.”

» Read more: Great tools we’re using right now…

Pulling data from Twitter with jQuery

October 21st, 2011 by Jared No comments »

Twitter have made data retrieval pretty damn simple.. I managed to lookup all the info I needed and write this code in just a few minutes.. My requirements were quite simple though, all I had to do was retrieve the top 2 latest tweets from a specific user and display them on a page.

All the documentation you need can be found here: https://dev.twitter.com/docs. To fulfill this requirement I needed to use the following api url: https://api.twitter.com/1/statuses/user_timeline.json. This allows me to retrieve tweets from a user.

Let’s get started..

» Read more: Pulling data from Twitter with jQuery

IE Error when retrieving XML using JQuery .ajax()

June 22nd, 2011 by Christian No comments »

Had an irritating error in IE 9 (and under) when trying to retrieve some XML using jQuery’s $.ajax() function, part of the issue ended up being that the dataType parameter MUST be in capital letters, for example:

This does not work:

$(document).ready(function()
{
  jQuery.ajax({

    type: "GET",
    url: "localXMLFile.xml",
    dataType: "xml",
    success: function( status )
    {
      //Success
    },
    complete: function( status )
    {
      //Complete
    },
    error: function( status )
    {
      //Error
    }
  });
});

» Read more: IE Error when retrieving XML using JQuery .ajax()

Sharepoint: Maintain Scroll Position on Postback

January 24th, 2011 by jason 2 comments »

Problem: Sharepoint does not maintain Scroll Position on Postback

Solution:

Step 1: Navigate to your Default.Master Page in Sharepoint Designer and add the following Line:

<%@ Page Language=”C#” AutoEventWireup=”true” MaintainScrollPositionOnPostback=”true” %>

Step 2: Save and publish your Default.Master Page, you will notice that Sharepoint Designer has modified the above line to something like the following (Depending on your Sharepoint Version):

<%@ Page Language=”C#” AutoEventWireup=”true” MaintainScrollPositionOnPostback=”true” inherits=”Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>

Step 3: Add # anchor tags as per normal HTML to your Web Part Pages and your Scroll Position will be maintained on Postback


Change the days to display the !new icon in SharePoint 2007

June 28th, 2010 by Terence No comments »

In SharePoint 2007, when a new item is added to a list or document library, the !new icon is displayed. By default, this is visible for two days. Using the stsadm commands below, you can change the number of days to display this, or not to display it at all.

Get the current value of days
stsadm -o getproperty -propertyname days-to-show-new-icon -url http://site.company.com
A value of “2″ should be returned.

Set the new value of days
stsadm -o setproperty -propertyname days-to-show-new-icon -propertyvalue 7 -url http://site.company.com
Change the value after -propertyvalue to your required number of days.

Source

Add DLL to the GAC in Windows 2008

May 31st, 2010 by Terence No comments »

Pre-Windows Server 2008 was easy enough to install new DLL files to the GAC. As simple as dragging-and-dropping to the C:\Windows\Assembly folder. In Windows Server 2008, however, when attempting to drag-and-drop, an Access Denied error appears similar to the following.

AssemblyCacheViewerAccessDenied

So, how do we install new DLL files into the GAC without Windows Installer? Using one of the following ways: » Read more: Add DLL to the GAC in Windows 2008