David.Parsons:That option is briefly mentioned in item 4 of that post. If you leave it out of your connection string, as shown in the sample App.config, it defaults to false, which is correct. The most likely problem is that your tables already contain some zero datetimes stored in them. You will have to root them all out, and replace them with something .NET can handle, such as "0001-01-01".
Ok, I added "Allow Zero DateTime=yes" to my connection string and the ASPX Template page loaded, but when I clicked on an item to edit, it gave me this error:
Specified cast is not valid.
I did have some zero datetime values and replaced them with '0001-01-01'. If I'm setting a datetime in .Net code from a different form than the ASPX Templates, is it as simple as this?
Code:
inq.InquiryDate = DateTime.Now;
King Wilder
http://www.kingwilder.com