The exception:
"Input string was not in a correct format."
Appears when I try to access a field on my page like this:
.TransmissionId = IIf(FormValues("TransmissionId").Length > 0, Integer.Parse(FormValues("TransmissionId")), 0)
However it works for another field which is the same exact type of field, accessed like this:
.StateId = IIf(FormValues("StateId").Length > 0, Integer.Parse(FormValues("StateId")), 0)
Where could the mismatch and exception be coming from? What could be the fault? The field doesn't have a value when I'm pulling it. Do I have to test for a value different for this number field than I would have to for a text field?