Archive for October, 2008
I had a client ask me about this one today so I thought I would put a quick answer here. The question was "How do I show the modified and created dates on a publishing page?" The answer – there are a couple of ways of doing it. If you want to show just the [ READ MORE ]
I gotta say that I am pretty proud about this one. The scenario is that you have a timer job that connects to a database somewhere, and the connection string is stored in the web.config file. Now since your timer job doesnt run inside of IIS, it runs under the OWSTIMER executable, you can’t access [ READ MORE ]
Just a quick one that I thought was worth my time to document. I am working on a web part for a public facing web site at the moment, and it needs to connect to a database to store and read certain data. It will have anonymous and some authenticated users hitting it, so I [ READ MORE ]
I am working with a web part that needs to show the structure of a site. Normally when I have needed to do this in the past I would just parse through the SPWeb objects. However this is not exactly a good solution from a performance perspective, and when the web part is going to [ READ MORE ]
Just a quick bit of self indulgence – for the last few months I have been working hard to make time for the SharePoint forums to answer as many of people’s posts as I can. Anyway, I got on there this morning as I always do, and I saw this in the design and customisation [ READ MORE ]
Have you ever been putting a piece of code together and thought to yourself "I know I shouldn’t be hard coding that string" but you don’t think that its something that would belong in a configuration file? Well then this is for you. For those who don’t know about resource files, they are basically an [ READ MORE ]
This is something that came up with a client of ours that I was not previously aware of. The problem is that out of the box, MOSS will remove the association between workflow tasks, history items and the workflow itself 60 days after the workflow has been completed. So if you have been using the [ READ MORE ]
Just a quick bit of code that I put together today that I thought was worth sharing. If you need to change the content type of a list item then here is a piece of code that will do it for you. 1: // get the list item that you need to update (do this [ READ MORE ]
Late last week I was having some troubles getting a MOSS site to be indexed correctly by the MOSS search. Basically there were a few issues around services and some other infrastructure issues that I worked through before I got it to a point where it was indexing all of the content from the farm, [ READ MORE ]
This is something that has come up for me a few times in the past – when you are writing something for SharePoint, how do you go about logging what your custom code is doing? I have been on projects in the past that have written custom web services to get logging details, others that [ READ MORE ]
Subscribe in a reader
Subscribe by Email