News

In LINQ, Beware of Skip(0)

Author: Marc Geldon Calling IQueryable<T>.Skip(0) seems like it should be “free.” In other words, since it will have no effect on the resulting data, there should be little to no performance cost for calling it. But this is demonstrably not true in LINQ to Entities, and it occurs to me that LINQ providers are not required to optimize it away. Therefore, it is probably a good idea…
Read more
News

Using DayPilot with ASP.NET MVC

Author: Craig Stuntz 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 capabilities of the control and consider the general problem of how to use controls designed for…
News

Using jqGrid with ASP.NET MVC: Deleting Records

Author: Craig Stuntz 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 implementing deletes. If you’re new to the series, you might want to start at the beginning. The delete…
News

Using jqGrid with ASP.NET MVC: Search and Formatting

Author: Craig Stuntz 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 implement a search feature and fix the problem with formatting date columns which I observed in the last post. I’ve updated the demo solution with these new features, and also fixed a bug reported by Andrey last time. If…
Read more
News

Using jqGrid with ASP.NET MVC: LINQ Extensions

Author: Craig Stuntz Mere hours after I posted the first in a planned series of posts on using jqGrid in ASP.NET MVC applications, Phil Haack, a rather-more-widely-read-ASP.NET-MVC-blogger, wrote a long post on, er, exactly the same thing. Who, me, bitter? Naahhh… 🙂 But…
Delphi

DataSnap Server Method Stream Parameters

Author: Jim T1392 This is a continuation of my posts on DataSnap server method parameters and return types. This post is about TStream and TDBXStreamValue. The sample client and server projects that go with this post can be downloaded here: http://cc.embarcadero.com/item/26854 See my earlier posts on “Basic” and “Basic DBXValue” types. I’ve yet…
Read more
Delphi

DataSnap Server Methods Parameters

Author: Jim T1392 Delphi 2009 introduced support for DataSnap server methods. If you are not familiar with this feature, here are two articles that describe server methods: DataSnap 2009 Overview , Getting Started with Delphi DataSnap 2009. DataSnap server methods support a…
News

ASP.NET MVC TempData Is Really RedirectData

Author: Craig Stuntz Update: This post was written for MVC 1. TempData behaves completely differently in MVC 2 Beta and higher. In these versions, TempData is cleared only when it is read (or when the session expires). Many people seem to be confused about the TempData…
Delphi

SQLDA missing or incorrect version, or incorrect number/type of variables

Author: Craig Stuntz The error in the title comes from InterBase. Actually, the full error is: [DataDirect][ODBC InterBase driver][InterBase]Dynamic SQL Error, SQL error code = -804, SQLDA missing or incorrect version, or incorrect number/type of variables. I’ve seen this error before when the wrong InterBase client (gds32.dll) version was loaded by the application, or when the wrong number…
Read more