Click here to Skip to main content
15,917,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
<asp:ImageButton ID="imgbtn" Width="25px" Height="25px" ImageAlign="Right"runat="server" Visible="true" OnClick="log_Click"  OnClientClick="openWindow()" />




C#
var newWindow = null;
        function openWindow() {

            if (newWindow != null)
                newWindow.close(); // for close opened window
            newWindow = window.open("demo.aspx?xxxx=" + "1200" + "&sada=", 'mywindow', 'height=750,width=1200, menubar=0, resizable=yes');
            //alert('close',20)
            newWindow.focus();
            newWindow.location.reload();
           }



The opening popup browser window does have any data(simply blank). if i'm setting alert msg means i have data in popup browser.
Posted

1 solution

Not sure if this is your problem but have you noticed from Window.open()[^]:
Note that remote URLs won't load immediately. When window.open() returns, the window always contains about:blank. The actual fetching of the URL is deferred and starts after the current script block finishes executing. The window creation and the loading of the referenced resource are done asynchronously.
 
Share this answer
 
Comments
Sathish km 24-Jul-15 2:15am    
ok.give any possible solution..

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900