Recently I implement some logic, I just open a popup and then I fill the details in that once I click submit I need to close the modal popup.
Using below code I can achieve my goal.
function closeDialog() {
alert('Submitted Successfully');
$("#dialog").dialog("close");
}
and in code behind submit click event wrote below lines of code.
ScriptManager.RegisterStartupScript(this, GetType(), "dialog", "javascript:closeDialog();", true);
Hope this will help some one those who are looking for the same..