In Code First Entity Framework models, you can define the length of a string field with StringLengthAttribute, but you have to write code in...
Craig Stuntz
How to Fix MSBuild Error MSB4006
You may encounter an error which looks like this: MSB4006: There is a circular dependency in the target dependency graph involving target...
YAML and Remote Code Execution
YAML's security risks are in no way limited to Rails or Ruby. YAML documents should be treated as executable code and firewalled accordingly....
Faking a placeholder Attribute for an Editable div, and Some CSS Tricks
HTML input elements have a placeholder attribute which you can use to show a bit of text to prompt the end user. Although you can make an editable...
Why Won’t Visual Studio Step Into This Code?
I helped another developer debug an interesting problem this morning. Let's see if you can spot the problem. The code in question looked...
Troubleshooting Entity Framework Connection Strings
In an application which uses the Entity Framework, you may see the following error at runtime: MetadataException: Unable to load the specified...
In LINQ, Don’t Use Count() When You Mean Any()
If you have a list, array, or query in a C#/LINQ application and need to check and see if the list is empty, the correct way to do this is to use...
A Math Primer for Gentry’s Fully Homomorphic Encryption
A couple of weeks ago, I wrote What Is Homomorphic Encryption, and Why Should I Care? In that post, I promised to share my C# implementation of the...
What is Homomorphic Encryption, and Why Should I Care?
The March 2010 issue of the Communications of the ACM includes a technical paper with an introduction entitled "A First Glance of...
jqGrid and XSS Security
Version 3.5.2 of jqGrid included an important new feature: Now when autoencode is set to true we encode the data coming from server and not only...
Entity Framework Models and Source Control
As you're probably aware, an Entity Framework model is stored in a single XML file, with the extension EDMX. Developers occasionally ask if this...
Using DayPilot with ASP.NET MVC
I'm going to demonstrate how to use the open-source DayPilot Lite calendar control in an ASP.NET MVC application. I will discuss the...
Using jqGrid with ASP.NET MVC: Deleting Records
This is the fifth post in a series on using jqGrid with ASP.NET MVC. Today, we’re going to begin examining the grid's editing features by...
Using jqGrid with ASP.NET MVC: Search and Formatting
This is the fourth post in a series on using jqGrid with ASP.NET MVC. Today, we're going to examine search and formatting results. I will...
Using jqGrid with ASP.NET MVC: Finally, A Solution
Having introduced jqGrid and written LINQ extension methods to make supplying data to the grid easy, we're now ready to put together a demo...
Using jqGrid with ASP.NET MVC: LINQ Extensions
Mere hours after I posted the first in a planned series of posts on using jqGrid in ASP.NET MVC applications, Phil Haack, a...
ASP.NET MVC TempData Is Really RedirectData
Update: This post was written for MVC 1. TempData behaves completely differently in MVC 2 Beta and higher. In these versions, TempData is cleared...
SQLDA missing or incorrect version, or incorrect number/type of variables
The error in the title comes from InterBase. Actually, the full error is: [DataDirect][ODBC InterBase driver][InterBase]Dynamic SQL Error, SQL error...
Dynamic Creation of IntraWeb Components
For the past couple of days I’ve been working on an experimental IntraWeb (a.k.a., "VCL for the Web") project. Since I typically generate...
Installing ActiveX Controls in RAD Studio 2007
The procedure for installing ActiveX controls on the Delphi/RAD Studio 2007 component palette is apparently confusing to some users of older...