?
Solved

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

Posted on 2006-04-10
3
Medium Priority
?
248 Views
Last Modified: 2008-03-17
Hello,

I am opening a Pop up from an asp.net 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'>window.open('" & pageName & "', '_blank', '" & styleInfo & ",location=no,menubar=no,resizable=no,scrollbars=yes,titlebar=no,toolbar=no,dependent=yes', true);</script>"
            Response.Write(writestring)
End Sub

Thanks
Deepti
0
Comment
Question by:vbdev04
1 Comment
 
LVL 15

Accepted Solution

by:
GavinMannion earned 2000 total points
ID: 16419784
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?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

840 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