Coming from a .net background I must admit to missing many of the features that the framework provides like Hastables,
Dictionaries and Lists. I've just come up with a really simple dictionary class that I use to hold results from my id parsing routine.
Read more...
September 18th, 2009
fbis
Here is my first freely available jQuery plug-in. There are a few more to follow soon including a form builder and a file explorer
Overview
I know there are a million calendar selectors out there but I needed one that covered historical dates (1800-2100). It displays either as a in place calendar in the page or as a drop down aka. combo box style.
Read more…
Been a bit quiet round here lately but not because I’ve not been working on it
I’ve been using it for a project at work and converting a lot of my stuff to be compatible with it. It’s running a site atm and doing well.
Alpha State
Mainly in alpha because things may yet change but the following all work
Read more…
It always annoys me that Literal controls only have a text property. This means you have to do:
Literal.Text += "Add me";
Whereas a StringBuilder would make much more sense when building lists etc. Heres a stupidly simple control that just supplies a string builder as the text property. Not exactly a good code example(shouldn’t override the text property etc) but ideal for this situation. I will write a proper control later
Read more…
Simple function to convert a string to proper case
CREATE FUNCTION PROPERCASE
(
--The string to be converted to proper case
@input varchar(8000)
)
--This function returns the proper case string of varchar type
RETURNS varchar(8000)
AS
BEGIN
IF @input IS NULL
BEGIN
--Just return NULL if input string is NULL
RETURN NULL
END
<a href="http://www.fruitbatscode.com/uncategorized/proper-case-sql-function#more-293" class="more-link">Read more...</a>
Simple Permissions
The permission system is simple in design but allows complicted permissions to be created by layering the mixed key, role and level properties. The concept is that we have permissions that any item wanting to check just asks the permission system if the logged in user can carry out the action. At its simplest form it is used thus: Read more…