Software development
-
Customizing DateTime view templates in MVC3 to display jQuery datepicker utility
By default MVC generates a textbox for a model property with a datetime value. But most of the time you would rather have it generate some sort of a datepicker utility instead, here I’ll modify my project to do exactly just that. So here I have an Address class with two DateTime properties that I Continue reading
-
Using Entity Framework code-first on pre-built database
First of all I am a true believer in SQL scripts and stored procedures and have spent countless hours honing my skills in those areas. However, every time I start to work on a project I have to put on my DBA hat and think in terms of database schemas, relationships and normalizations. Then if Continue reading
-
Funny Video
Lets ditch the keyboard – and program using the wheel Continue reading
-
SQL Server–Creating a new database from a .bak file
Backing up a database and restoring a database from a backup copy is something we do on a regular basis without much attention. However, today I was trying to create a new database from the one that I already had for testing purposes. So I backed-up the original database lets call it ‘xyz.mdf’, created a Continue reading
-
Converting tinyint to regular good’ol int.
So today I was working on a project and came across the issue of extracting a tinyint value from the database using ADO.NET. I also had to ensure that the returned value wasn’t NULL or else the conversion would throw a System.InvalidCastException simply because it can’t cast NULL to an int. So the two things Continue reading
-
Why jQuery from CDN is preffered?
These days if your website doesn’t contain jQuery then people might start disliking you for no reason. You better believe it and get on board, yes jQuery is the next big thing and it has been for quite a while, I might add. So, if you’re wondering how can I get started, then you should Continue reading
