Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Use open popup window code:
HTML
<script>
var popupWindow = null;
function child_open() 
    { 
    popupWindow =window.open('Indent_popup.aspx',"_blank","directories=no, status=no, menubar=no, scrollbars=yes, resizable=no,width=800, height=280,top=200,left=200");
}
function parent_disable() {
    if (popupWindow && !popupWindow.closed)
        popupWindow.focus();
                 }
</script>

ASP.NET
<asp:Button ID="Add_btn" runat="server" BorderStyle="Solid" Height="22px" 
                        Text="Add" Width="75px" onclick="Add_btn_Click" BorderColor="Gray" 
            BorderWidth="1px" Font-Bold="True" style="margin-top: 0px" 
  onclientclick="javascript:return child_open()"  CausesValidation="False" />

------------
code behind:
C#
protected void Add_btn_Click(object sender, EventArgs e)
{
    this.Add_btn.Attributes.Add("onclick", "javascript:return child_open()");
    process();
    //this.Add_btn.Attributes.Add("onclick", "javascript:return b_enable()");
    //Indent_no_dd.Enabled = false;
}


Thanks In Advance
Bhushan
Posted
Updated 11-Jun-13 22:45pm
v2

1 solution

You can use window.showModalDialog instead of window.open for this.
 
Share this answer
 
v2
Comments
[no name] 13-Jun-13 7:15am    
Thanks You So much

Bhushan Gupta
[no name] 14-Jun-13 4:22am    
if I open my showdialog and select a value in list box then open a new showdialog popup in Internet Explorer. but firefox and chrome working properly. plz solved this .

Three list box in popup window. first selection basis on second and 2nd select show on 3rd ...

Bhushan
[no name] 14-Jun-13 7:17am    
http://www.aspdotnet-suresh.com/2010/08/opening-child-window-from-parent-window.html

I solved it
[no name] 14-Jun-13 7:18am    
but through window.open()

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