Close modal window after submit the details using Jquery

Posted by Naveenhcl under TypeScript category on | Points: 40 | Views : 2403
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');

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..

Comments or Responses

Login to post response