It sounds like you reload the page when close the modal, which sets form to it default state. Try to hide a modal on the client (set display:none etc.) without postback/callback. In case you need postback/callback - make sure view state is enabled for your form.