Today I was testing the loading time of my site, which I sometimes find it slow to access especially the first time loading. I knew there are a lot of images to be loaded especially those in portfolio sections but I also found that the biggest loading item seems to be ScriptResource.axd from Ajax. It was 330kb!
Yesterday I spent the whole day finding on the Internet about how to restore the list form web part of my edit form as I accidentally deleted it and could never get it back from the Closed web parts, nor could I get it back by resetting the file to site definition in Sharepoint Designer.
Lookup field is a field which links a child class to a parent class, it is an association kind, which allows a list item to reference another item from another list. However, reading and writing to a lookup field is different from a normal field. We need to use the class SPFieldLookupValue to archieve this.
Creating Update Panel in code behind dynamically can be a bit tricky, comparing to doing it at the front end. Here's a quick view of the code we write to do this.
Just yesterday I realised suddenly I couldn't login to my Hotmail account. No matter what I tried, even the password reminder, etc didn't work. It seems as if something happened and then I realised my eBay account is not working too. Normally I would use iPhone to login to My Ebay, and strangely when I logged in via IPhone, my eBay account username was shown as someone else. Immediately I knew my accounts have been hacked.
I have been using StatCounter, as my website tracking statistic provider for many many years, even after Google Analytic came out. I liked Google Analytics but there is just one thing that Google can't provide that StatCounter does and that is the most useful piece of information I get from the stat.
I was trying to create a web part with WSPBuilder installed on Visual Studio 2008, but had the problem of rendering a user control. Then I came across this blog post, which explains the steps in wrapping usercontrol with WSPBuilder solution. What's even greater is we can setup a structure which seperates the application presentation layer with the WSP project.
One of the thing I hate most about Sharepoint is its naming. It does not tell the administrator what name it's actually storing a column field of, and this could always lead to errors.
I recently installed SQL 2008 on my machine and once I tried to restore a database, it failed as it complaint as the database was currently in use. In SQL 2005, we normally go to activity monitor to kill the process but this is a little different in SQL 2008. The easiest solution now is to run this little query.
Recently I had the chance to customise the advanced search box of Sharepoint server portal, with own fields/ properties and defined a seperate scope for it. It was not hard, but needs some research and practical experiments.
Recently, I had the chance to play around with ajaxifying Sharepoint server. As you would have probably known, Ajax is a great feature in .NET 3.5 but MOSS 2007 was shipped before Ajax was out. So, to use it, we just need some configurations done.