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

  • Home
  • SEARCH
  • 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 8433297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:20:55+00:00 2026-06-10T06:20:55+00:00

I have a requirement to open a new popup by using window.open and redirecting

  • 0

I have a requirement to open a new popup by using window.open and redirecting my current page to new page. My code looks something like below:

//    Work done...
//    RegisterStartupScript("window.open("page1.aspx")");
//    Server.Transfer("page2.aspx");

The problem is that my page is being redirected to page2.aspx but not opening a popup for page1.aspx.

It opens popup when Server.Transfer is not used.
Please guide me how I can achieve it?

  • 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-10T06:20:57+00:00Added an answer on June 10, 2026 at 6:20 am

    Server.Transfer does not send the response back to the browser and hence your javascript code would not execute. If you want to execute the javascript and then redirect the response use Response.Redirect.
    Please read the difference between both these methods here http://haacked.com/archive/2004/10/05/responseredirectverseservertransfer.aspx
    Also, Server.Transfer can only transfer to an asp.net page in the same
    application. When you call Server.Transfer, it just creates an instance of
    the specified page and transfers page processing from the current page to
    the new page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my project i have requirement to open a jsp page as a popup
I have a requirement to allow users to open word document from web page
Requirement : I have a piece of code similar to the code below. I
I have any array called query[] I am opening a new window with: window.open(http://localhost:8081/myapp/Query.action,mywindow,menubar=1,resizable=1,width=600,height=400);
I'm using NServiceBus to handle some calculation messages. I have a new requirement to
I have a new requirement to have a button in my web page, and
I have the requirement that I need to open a document in Microsoft word
I have requirement where some times I would like to load children as well
I have requirement like, suppose I have a 'property' table which has 'ListingKey' field
I have requirement as following like showing ABPeoplePickerNavigationController in tabbar based application. I researched

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.