jerryhien says:
<script type="text/javascript">
$(function () {
$('[id*=btnSave]').click(function () {
$('[id*=myModal]').modal('hide');
});
});
</script>
replace above code with below
<script type="text/javascript">
function pageLoad() {
$('[id*=btnSave]').click(function () {
$("[class*='modal-backdrop in']").remove();
});
}
</script>