How to make two popup windows remain open

It's a  .Net 3.5 web application. Opening the 2nd popup window closing the first one.
I want both of them in open state. The sequence is as follows:

In the Page1.aspx GridView row command 1st popup window (page2.aspx) will be opened.
In the page2.aspx button click event 2nd pop up window (page3.aspx) will be opened.
After  page3.aspx opened as pop up from page2.aspx(that is popup from page1),page2.aspx is automatically  getting closed. I still want it to be in open state.

How to make it happen(two popups in open state at the same time).

Page1.aspx code
protected void gv_RowCommand(object sender, GridViewCommandEventArgs e)
        {
         
            try
            {
             
              GridView grd = (GridView)sender;
              switch (grd.ID.ToString())
              {
                  case "grdStudent":
                      {
                          int iRowIndex = Convert.ToInt32(e.CommandArgument);
                       
                          string StudentNo = (grdStudent.DataKeys[iRowIndex]["student_no"]).ToString();
                          int ID = Convert.ToInt32(grdStudent.DataKeys[iRowIndex]["ID"]);
                           
                          Page.ClientScript.RegisterStartupScript(this.GetType(), "Pop up", "<script language='javascript'>" + "window.open('/Forms/Page2.aspx?param1=" + StudentNo + "&param2=" + ID + "',null,'height=1000, width=1000,status= no,resizable= yes, scrollbars=yes, toolbar=no,location=no,menubar=no ');</script>");
                          break;
 
                       
                      }
               }
 
            }
            catch (Exception ex)
            {
               
            }
            finally
            {
                SQLComm.Dispose();
            }
 
        }

Page2.aspx code
protected void Button_Click(object sender, EventArgs e)
        {
               Button btn = (Button)sender;
               switch (btn.ID)
               {
                     case "btnDetails":
                       {
                            string classNo = (ViewState["class_no"]).ToString();
                         
                           int StudentID = Convert.ToInt32(ViewState["StudentID"]) ;
                             Page.ClientScript.RegisterStartupScript(this.GetType(), "Pop up", "<script language='javascript'>" + "window.open('/Forms/Page2.aspx?param1=" + classNo + "&param2=" + StudentID + "',null,'height=1000, width=1000,status= no,resizable= yes, scrollbars=yes, toolbar=no,location=no,menubar=no ');</script>");
                           break;
                       }
}
}

Thanks
KavyaVSAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul JacksonSoftware EngineerCommented:
In your code where you use window.open you are leaving the window name parameter as null, change it so each window has a different name and the window will stay open.

Like :

Page.ClientScript.RegisterStartupScript(this.GetType(), "Pop up", "<script language='javascript'>" + "window.open('/Forms/Page2.aspx?param1=" + StudentNo + "&param2=" + ID + "','page2','height=1000, width=1000,status= no,resizable= yes, scrollbars=yes, toolbar=no,location=no,menubar=no ');</script>");
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KavyaVSAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.