I have a function to close a modal:
function closeModal(name) { $(name).modal(\'hide\'); }
But, my page also has an update panel and I
One option is to put a hidden button inside your update panel
Then call the following in your script
document.getElementById('<%=Button2.ClientID%>').click();
The button click will cause a postback.
You can also look at Page.GetPostBackEventReference