We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

vbdev04
vbdev04 asked
on
Medium Priority
273 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
Comment
Watch Question

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?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.