repeater - Create a new tab or window for a web page from ASP.NET -


I have a main page that I want to be a type of transmission center for the user in my web application. So I want the main page to be open, but when the user selects some tasks I can set it so that a new tab or page can be created with the task that they chose.

I know how to control any other page transferred, but how can I do something like a server. The transfers reveal only that new page in a new tab and open the existing page in the old tab / window?

For example what I am doing I currently have a criminal on my main page, which creates a list of linkbutton links in the linkbutton is the text from the data source. The user should click on a link button Afterwards, I want to open a new page and I want to be protected with this new page of session.

Can it be done, and how?

I am using the ASP .NET version in Net 3.5.

Edit: I do not notice it on a tab or window. I just want to create a new web page and be able to open the existing one.

You can 'change UI behavior server side' (for example, using the server. Transfer or Response. Redirect) - It does not work that way, so you can go about it in two ways:

  1. If you know before time that a particular task If you need to open a new window / tab, set the target of anchor or form tag properly (or javascript Use window Ript in. Open () function).
  2. If the decision to open a new window / tab is required to create a server side, then you need to create a JavaScript that you can generate.

Keep in mind that the new tab / window behavior is completely dependent on browser and user settings, so there will be no way to guarantee that - some settings will open all links in the same You can force the window, whether target or calling window. Open ()

If you are using a cookie-based session, which is also the default functionality in a new window or tab, then the user will still be using the same session, so to preserve the session session You should not do anything special to do.

If you are using a URL-based (or punct) session key, please make sure that you open a new window with javascript when using the URL properly. . I am not positive, but I believe that using the target attribute and relative URL, the appropriate URL should be generated.


Comments