How do I not refresh Parent Page when I open a Popup


I am opening a Pop up from an page. The Popup shows some values. Depending up on the value selected on the Popup, the fields on the Parent page get Populated. But the Parent Page also gets refreshed during this. How can I avoid that?

I call the Popup as given below:

Sub openPopup(ByVal pageName As String, ByVal styleInfo As String)
            Dim writestring As String
            writestring = "<script language='javascript'>'" & pageName & "', '_blank', '" & styleInfo & ",location=no,menubar=no,resizable=no,scrollbars=yes,titlebar=no,toolbar=no,dependent=yes', true);</script>"
End Sub

Who is Participating?
Okay but how do you populate back?

The parent page will refresh when you open the popup because you are using code behind to open the popup.

If you want the parent to not post back when opening the popup then move this into client side javascript.

If the parent is posting back after something happens on the popup we will need to see what you are calling on the popup to make this happen?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.