Wednesday, 23 March 2011

ObjectDataSource and the greatest tip I can give about it!

Do you hate working with Eval methods when working with an object datasource...?

So do I.

Here's a tip where you can cast the source object to its original type!

<%# Container.DataItem as {insert your type to cast here} %>

The benefit of this:
  1. Its Faster!
  2. You get Intellisense on the casted obect!
  3. You can access associated functions!

Wednesday, 9 March 2011

MySQL Unique Index and nulls

One of those annoying things which has cost me a lot of time... but to save other people from the same fate something worth noting regarding MySQL:

a UNIQUE index allows multiple NULL values for columns that can contain NULL!!!!!

Arghhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Thursday, 3 February 2011

A Blog is Born

After much umming and ahhring we've decided to create a blog to publish our thoughts and findings regarding our work as the squaredigital development team!