Click here to Skip to main content
15,914,924 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
function OpenChildWindow(value,pagename)
        {
            //open a new dialog window
            try
            {
            var sFeatures="dialogHeight: 500px;";
            sFeatures += "titlebar :no";
            sFeatures += "dialogWidth: 600px;";
            sFeatures += "right: yes;";
            sFeatures += "edge: sunken;";
            sFeatures += "scroll: no;";
            sFeatures += "status: yes;";
            sFeatures += "resizeable: no;";
          
            var url = "conntrolsetting.aspx?";
            url += "SomeValue=" + value + "&";
            url += "spage=" + pagename;

            entryWindow=window.showModalDialog(url,'ChildForm',sFeatures);


            if(entryWindow ==true)
            {

                //this would trigger the update panels update as the button is part of the UP
                window.document.getElementById('btnHiddenForUpdate').click();
            }
            else
            {
                //No change will happen to the parent page as child page did nothing

                window.document.getElementById('btnHiddenForUpdate').click();
            }
            }
            catch(e)
            {
            }
        }

whats's wrong with this code ..i am new in asp.net development .when i click on the popup window it's open a new page or window .i don't know how to fix this problem.please help...me
Posted
Updated 23-Sep-13 0:55am
v2
Comments
[no name] 23-Sep-13 6:37am    
What exactly you are trying to do..?
MAYANK GEETE 23-Sep-13 6:54am    
i m trying to open conntrolsetting.aspx page on popup window and when i close popup window i want to update parent page.
Thanks7872 23-Sep-13 6:50am    
Why you are explaining this here? Use Improve question and post this explanation in question it self.
MAYANK GEETE 23-Sep-13 6:55am    
thanks :)
Anurag Sinha V 23-Sep-13 6:46am    
What is the problem??

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