Asp.net: Error submitting form

See how to find out about the real error:

In general do not try to make a single server connect action with many complex cases - but use a separate server action for each action type.