Child window to view all data entered into Parent page
<p>I have to open child page on click of View Summary Button to view data entered into page ... So i have to open that page with all controls and data entered into it. How i can achieve it with javascript in asp.net ?
Please help if you know...</p>

<p>My code to open child page is like that:</p>



<p></p>

<pre><code>&lt;script src="css/ViewDetailsPopup.js" type="text/javascript"&gt;&lt;/script&gt;

&lt;script language="javascript" type="text/javascript"&gt;
    function View_Summary() {
        printWindow = window.open('' + self.location, "location=0,status=0,scrollbars=1,resizable=1,width=1000,height=500");

        var strContent = "&lt;html&gt;&lt;head&gt;";
        strContent = strContent + "&lt;title" + "&gt;View Summary&lt;/title&gt;";
        strContent = strContent + "&lt;/head&gt;&lt;body onload=self.focus()&gt;&lt;center&gt;&lt;h4&gt; View Summary&lt;/h4&gt;&lt;/center&gt;";
        strContent = strContent + "&lt;div style='width:72%;text-align:right;color:gray'&gt;";
        strContent = strContent + "&lt;/div&gt;";
        strContent = strContent + "&lt;div style='width:100%;'&gt;";

        var inputs = document.getElementsByTagName('input');


        var _Getdiv = document.getElementsByTagName('div');
        var _GetdivinnerHTML = _Getdiv.item;
        for (var i = 0; i &lt; inputs.length; i++) {
            var input = inputs[i];


            if (input.type == 'submit') {
                input.style.visibility = 'hidden';
            }

            if (input.type == 'text') {

                var TextID;


                //document.getElementById(input.id).value = input.value;



                input.readOnly = true;
                input.disabled = false;
                // document.getElementById(input.id).value = TextID;

                input.style.opacity = '0.9';
                input.style.filter = 'alpha(opacity=90)';
                input.style.width = '100px';

            }
        }
        strContent = strContent + document.getElementById("p").innerHTML;
        strContent = strContent + "&lt;/div&gt;";
        strContent = strContent + "&lt;/body&gt;&lt;/html&gt;";
        printWindow.document.write(strContent);
        //  alert(strContent);
        printWindow.document.close();
        printWindow.focus();
    }
&lt;/script&gt;
</code></pre>

<p>

    
        
            
                
                <br />
            
        
    
</p>

<p>With this page is opened but i am not getting the value written into textbox when first click happened on button...but it opens with value when second time i clicked on button.</p>
