Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8761067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:12:03+00:00 2026-06-13T15:12:03+00:00

I am currently in the process of migrating an old system to another server

  • 0

I am currently in the process of migrating an old system to another server and when I tested the application, my popup windows displays a blank page. Please see below the code which is used to display my popup message:

Private Sub ShowPopUp(ByVal myID As String, ByVal request As String, ByVal windowType As String, ByVal code As String)
    Dim popupScript As String = "<script language='javascript'>" & _
                                    "window.open('NewWindow.aspx?windowType=" & windowType & "&id=" & myID & _
                                    "&code=" & code & "&popup=" & request & "&kind=3', 'CustomPopUp', " & _
                                    "'width=700, height=400, menubar=no, resizable=yes')" & _
                                "</script>"

    Page.RegisterStartupScript("PopupScript", popupScript)
End Sub

Now this used to work perfectly on the old site and on local. However, once transferred to the new server, I keep getting the warning that Page.RegisterStartupScript is obsolete and that it should be changed to Page.ClientScript.RegisterStartupScript. So I did the changes, please see below:

Page.ClientScript.RegisterStartupScript(Me.GetType(), "PopupScript", popupScript, True)

However, these doesn’t work. It shows a blank page on my popup contrary to the result of running the application on my local with the ‘old’ way which shows my desired output.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:12:04+00:00Added an answer on June 13, 2026 at 3:12 pm

    Your code should be ideally

    Private Sub ShowPopUp(ByVal myID As String, ByVal request As String, ByVal windowType As String, ByVal code As String)
        Dim popupScript As String = String.Format("window.open('\NewWindow.aspx?windowType={0}&id={1}&code={2}&popup={3}&kind=3', '{4}', '{5}')",
                windowType, 
                myID, 
                code, 
                request,
                "CustomPopUp",
                "width=700, height=400, menubar=no, resizable=yes" )
    
        ClientScript.RegisterStartupScript("PopupScript", popupScript, True)
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are currently in the process of migrating our application from our production environment
I'm currently in the process of migrating an application that uses NServiceBus 2.6 to
I'm in the process of migrating portions of an application from Windows Forms to
I am currently migrating my Compact Framework 2.0 application to the new Windows Embedded
I am migrating from one system to another and in the process, I will
I'm currently in the process of migrating the contents of one SVN server to
I'm currently migrating my LAMP from my Windows Server to a VPS running Debian
I'm looking into migrating our system to Windows Azure. Currently we have an automated
I am currently in the process of updating many test sites on an old
I'm currently in the process of writing a steganography application with Qt. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.