Nested categories in DasBlog
Posted on 07-Jun-2004
A few people have expressed a desire to have nested, or hierarchical categories displayed on the front page of their blogs.
A few people have expressed a desire to have nested, or hierarchical categories displayed on the front page of their blogs.
I wrote this script as I noticed my users were receiving a lot of "Inserted value too large for column" errors.
I thought I'd preempted this by setting the maxchars attribute in all my <input type="text"> and <textarea></textarea> controls, but IE just seems to ignore it. I confess I haven't tested this behaviour on any other browsers.
The script utilises the onKeyUp() method, and basically trims off any excess characters from the specified control.
I've just checked in a couple of little changes to DasBlog, hopefully these will benefit others too
Based on some VB.net code I found on 123aspx.com, I knocked up a little class in C# that given a SAM account name, returns the first email address it encounters in active directory.
It's not hard, but as I had to learn how to do this yesterday while creating a sharepoint webpart, I thought it might be helpful to post the steps up here.
If you are involved with designing and maintaining any Oracle databases, you'll probably have come across the annoying fact that there is no straightforward way to change a field's datatype whilst preserving the existing data.
You can find the code here, there is no example as it should be pretty self explanatory.