KoenV
-
.NET and SMTP Configuration
Sometimes I feel stupid about discovering .NET features that have been there since an old release (2.0 in this case)...
-
Visual Studio 2010 tip: Cut empty lines
How many times you wanted to move 2 lines by cut and pasting them, but the line you cut last is actually a blank line and your actual code is removed from the clipboard? Visual Studio 2010 has an option that keeps cutting blank lines from overwriting the clipboard. Go and uncheck this one: Tools » Options » Text Editor » All Languages » General » Apply Cut or Copy commands to blank lines when there is no selection
-
AgUnit - Silverlight unit testing with ReSharper
If you’re a ReSharper user and Silverlight 4 developer you’ll probably like this add-in that two of my co-workers created. It lets you run your Silverlight unit tests inside the Visual Studio IDE.
-
Generically correcting data before save with Entity Framework
Been working with Entity Framework (.NET 4.0) for a week now for a data migration job and needed some code that generically corrects string values in the database. You probably also have seen things like empty strings instead of NULL or non-trimmed texts ("United States ") in "old" databases, and you don't want to apply a correcting function on every column you migrate.
-
Error pages in ASP.NET
In ASP.NET you can retrieve the last unhandled exception via:
-
VTM goes Surface
My colleague Kristof wrote an article about a Surface project he did for VTM (Belgian national television) and it was used during yesterdays' election show.
-
DataSource parameter for code-behind property
Here's some code for a server control "PropertyParameter" that you can use as a SelectParameter in your xyzDataSource that binds (one-way!) to a property value that is defined in code behind. This is something I need sometimes and isn't available out-of-the-box.
-
Warning: Generation of designer file failed: The ... tag has already been registered.
Weird problem in ASP.NET again... With a weird solution:
-
Exceptional exception handling
My (much more productive) colleague Davy beat me to post this problem we had today at work, so I'm gonna be lazy and link to him (and steal his title).
-
LINQPad
Joseph Albahari created this great tool to execute LINQ (but also SQL) queries and review the results. In case of LINQ you also get to see the corresponding compiler translation and SQL query.