Today I had some trouble with setting the focus on an input element within an overlay panel in IE6. To be more specific: I had to set the focus on the lastname textbox in the search-argument panel for the people-search page in Sharepoint. Calling the focus() method worked in every opther browser except, of course, IE6.
The code that was causing the problem is as simple as this:
document.all['lastname'].focus();
Apparently this is an ancient IE6 bug. Luckily the problem is easily fixed by using the setTimeout function. Just wrap the offending code like so:
setTimeout(function() { document.all['lastname'].focus() }, 0);
When you want to debug an assembly that has been deployed to the GAC (e.g. an assembly that is part of a Sharepoint solution), the easiest way is to change one of the settings in Visual Studio (2005, 2008 or 2010):
- Open the Visual Studio Options dialog (Tools -> Options)
- Select Debugging in the left pane
- In the right pane, locate the Enable Just My Code (Managed only) node
- Uncheck all the childnodes under the Enable Just My Code (Managed only) node
- Uncheck the Enable Just My Code (Managed only) node
- Select OK

I'm not sure why, but BlogEngine.NET converts all tags to lowercase. I like my tags to appear as I entered them (like ASP.NET & LINQ), so I decided to change the way my BlogEngine.NET installation handles tags. Luckily, the only needed modification is in the code that stores the tags:
So, here it is, my new year's resolution for 2009 2010. To finally write content for my blog.
I'll be writing about my experiences and the problems & solutions I encounter during my work and hobbies.
Happy new year everybody!