blog
My blog of techy stuff, ranging around SQL (SQL Server, that is), C# and .net, JavaScript and a smattering of stuff about the Orchard CMS (that powers my site) as I get more familiar with it. There's the occasional non-technical post when something is of interest to me that I feel is worth sharing, but they should be few and far between
-
ASP.NET Expression Builders - Part 3 - Wiring it up in web.config
The final piece of the puzzle to get an Expression Builder working is the entries that are required in the web.config file. Assuming that your expression builder class is in the App_Code directory, …
-
ASP.NET Expression Builders - Part 2 - Using them for Localisation
An expression builder is invoked by ASP.net when it transforms the ASP.net server control markup into C# code ready to be compiled and then rendered out, allowing code to be invoked to set properties …
-
ASP.NET Expression Builders - Part 1
Some linkage first:
Use ExpressionBuilder To Avoid "Server tags cannot contain <% ... %> constructs"
The CodeExpressionBuilder
skmExpressionBuilders - A Suite of Custom Expression Builder …
-
Finding a row in a DataTable
If you have a System.Data.DataTable that contains the columns {ItemId, ItemName, ItemQuantity} and wanted to find the record for a given ItemId, you could always use the followind code:
int …
-
An attempt was made to load a program with an incorrect format
Could not load file or assembly 'NameOfAssemblyGoesHere' or one of its dependencies. An attempt was made to load a program with an incorrect format.
This message being spewed- …
-
Exclude SCC / VSSSCC files from Web Setup Projects
The structure of a Web Setup Project (.vdproj) file is just plain strange as it's "kinda" like XML but with curly braces ( { and } ) and quotes instead of < and > symbols.Go figure.
If you have a …
-
Formatting a number to be zero-padded
int i = 3;string padded = string.Format("{0:5D", i);
Gives a value of "00003" as the string called "padded" - that simple.
-
Riffing on: Avoiding the Uncanny Valley of User Interface
Inspired by: http://www.codinghorror.com/blog/archives/000869.html
Never has a truer word been spoken. Trying to shoehorn desktop application UI paradigms into a web based application never ends …
-
extJS: VType for validating a time
I needed a VType for validating a time using the extJs framework in the format HH:MM (24 hour clock, no 'AM' or 'PM') and couldn't find one that quite fit the bill, so a tweaked version is:
Ext.form. …
-
Reflecting on Excel
Gabhan Berry has some really interesting (and potentially useful!) stuff that mainly centres around programming with Excel. One of the most interesting entries is one regarding dealing with Optional …