Click here to Skip to main content
14,208,773 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all Expertise ,

Here i am open Modal Popup Form and i want close this on button Click and go-back to parent form on next button ,

i am new to use this popup form and so i don't have any idea what to do here,or how to redirect this to it's parents form without refreshing parent form ;

i do here $.post method to first send data to controller save this and trying to get back on parent form ,
.tpCompony1 is button that i want do disabled false , and then want select it

need help ,

What I have tried:

		$("#saveContinue1").click(function () {
			var url = "/MyCompony/Comp1save1";
			var shopname = $("#SHOP_NAME").val().trim();
			$.post(url, { SHOP_NAME: shopname }, function (json) {
				$(this).parent('.tpCompony1').prop("disabled", false);
			function RefreshParent() {
				if (popup.opener != null && !popup.opener.closed) {
			window.onbeforeunload = RefreshParent;

Updated 29-Mar-19 5:30am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190612.1 | Last Updated 29 Mar 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100