Redirect to new tab

Hi,

At the page_load we use this code to redirect to another page: ActionResult = Controller.LocalRedirect(“~/login”);

This works. Now we want to redirect to this page in another tab.

We use: ActionResult = (Controller.LocalRedirect(“~/login”), “_blank”);

But this is not working.

What is the working code ?

Regards,

Danny

You cannot open a new tab using server side codes alone. You must use some client side codes (e.g. a hyperlink with target=“_blank”).