Hey there,
I have created an example for you, I hope this is what you were looking for:
In this example, I have two Pages, ParentTest1.aspx and ParentTest2.aspx, and the page that will open in popup is MyPopup.aspx,
Ok I have a Button and the JavaScript to open the popup in ParentTest1.aspx:
ParentTest1.aspx:
<asp:button runat="server" id="BtnPopUp" text="Open Popup" onclientclick="return OpenPopup(); " xmlns:asp="#unknown" />
function OpenPopup() {
var returnValue = window.showModalDialog("MyPopup.aspx?Qty=1&ThumbnailUrl=http://honnex1-pc/JesusChristImg/pdfTojpg/LivingWater_LF1110201321117902.jpg&ItemNumber=D20131011153145960&Action=Create", "", "Height:500, width:500;");
window.location = returnValue.MyURL;
return false;
}
I have a button to submit and JavaScript function to return a URL to open ParentTest2.aspx on MyPopup.aspx page.
MyPopup.aspx:
<asp:button runat="server" id="BtnSubmit" text="Submit" onclientclick="return OK();" xmlns:asp="#unknown" />
function OK() {
var vReturnValue = new Object();
vReturnValue.MyURL = "ParentTest2.aspx?ID=AnyValue";
window.returnValue = vReturnValue;
window.close();
return false;
}
Try it and let me know if it helps.
Azee...