How can I programatically open a new page in a new tab from my codebind file in ASP.NET?
问题 How can I programatically open a page in a new tab from my code behind file in ASP.NET after clicking on a button in my first page? Hopefully, from the new page I could also get to the Session[] array. 回答1: "Code behind" runs on the server, no browser instances there to open/use. Javascript runs in the browser, on the client's computer, it can open a new tab. If you want, you will have to write a piece in C# that will generate a JavaScript snippet with the window.open Command. 回答2: Kelsey's