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

Posted on 2006-04-10
Last Modified: 2008-03-17

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

Question by:vbdev04
    1 Comment
    LVL 15

    Accepted Solution

    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?

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now