I've put together a custom popup edit form using a template, and I'm having a problem with some checkboxes on it. I have them declared in the template like so:
| <asp:CheckBox ID="chkWriter" runat="server" Text="Writer" Checked='<%# Bind("Writer") %>'/> |
This works fine when I'm editing a record, but when I go to insert a new one I get an InvalidCastException here.