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 112283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:31:13+00:00 2026-05-11T02:31:13+00:00

I have a main page that I want to be a sort of dispatch

  • 0

I have a main page that I want to be a sort of dispatch center for the user in my web application. So I want the main page the stay open, but when the user selects certain tasks I can set it up so that a new tab or page is created with the task that they selected.

I know how to transfer control to another page, but how can I do something like a Server.Transfer only make that new page appear in a new tab and keep the existing page open in the old tab/window?

To give an example of what I’m doing. I currently have a repeater on my main page which constructs a list of LinkButtons. The LinkButtons have text from the data source. Once the user clicks on a link button, I want to open a new page and I want Session state to be preserved with this new page.

Can this be done, and how?

I’m using the version of ASP.NET in .NET 3.5.

Edit: I don’t care whether its a tab or window. I just want to be able to spawn a new web page and keep the existing one open.

  • 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. 2026-05-11T02:31:14+00:00Added an answer on May 11, 2026 at 2:31 am

    You can’t change UI behavior server-side (for example, by using Server.Transfer or Response.Redirect) – it just doesn’t work that way. So, there are two ways you can go about this:

    1. If you know ahead of time which specific tasks require opening a new window/tab, set the target of anchor or form tags appropriately (or use javascript’s window.open() function).
    2. If the decision to open a new window/tab needs to be made server side, you can generate and return javascript that does what you need.

    Keep in mind that new tab/window behavior is completely dependent on the browser and the user’s settings, so there’s no way to guarantee which will happen – some settings can even force all links to be opened in the same window, regardless of the target or calling window.open().

    If you are using a cookie-based session, which is the default functionality, even in a new window or tab, the user will still be using the same session, so you shouldn’t have to do anything special to preserve the session state.

    If you are using a url-based (or cookieless) session key, you will need to make sure you format the url appropriately using the key when opening new windows with javascript. I’m not positive, but I believe simply that using the target attribute and relative urls should automatically generate the appropriate url.

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

Sidebar

Ask A Question

Stats

  • Questions 74k
  • Answers 74k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can use int width = 1024; int height =… May 11, 2026 at 2:21 pm
  • added an answer After a brief search I found an example of sending… May 11, 2026 at 2:21 pm
  • added an answer So i figured out what to do. I'm using an… May 11, 2026 at 2:21 pm

Related Questions

I have some nested tables that I want to hide/show upon a click on
The basic idea of a masterpage is simple -- you have a block of
I have a page which does quite a bit of work and I don't
I have some code that I am putting in the code-behind of a master

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.