'window.opener.document.Invoice' is null or not an object

Posted by Prabu_Spark under ASP.NET on 1/25/2013 | Points: 10 | Views : 1541 | Status : [Member] | Replies : 0
Hi sir,
I developed one application that gets the value from popup window[PickCustCode.aspx] and has to return the value to the parent window[invoice.aspx]. I put the below line it is throwing error like 'window.opener.document.Invoice' is null or not an object. Kindly give me the solution for this problem.


Response.Write("<script language=javascript>window.opener.document['Invoice'].getElementById('<%=txtcode.ClientID%>').value = '" + s + "';window.close();</script>");

[Note: txtcode is the textbox control of invoice.aspx]

With regards,


(No response found.)

Login to post response