0
我想从后面的代码打开一个新窗口,当用户点击链接按钮时,但我的应用程序cookie和会话被终止,因为用户无法在请求页面上做任何事情,但我可以使用响应URL正确地查看窗口。为什么会发生这种情况,在回应期间,我没有对cookies做任何事情。我用的是下面的帖子Response.Redirect to new windowWindow.Open Killing Session和Cookies
string url = "XYZ"
string target = "";
string windowFeatures = "menubar=0,scrollbars=1,width=780,height=900,top=10";
script = @"window.open(""{0}"", ""{1}"", ""{2}"");";
script = String.Format(script, url, target, windowFeatures);
ScriptManager.RegisterStartupScript(page, typeof(Page), "Redirect", script, true);
我不是共享cookie我只是试图用“xyz.com”url显示一个新窗口,用户只会在我们的应用程序中,但问题是当我显示新窗口时,我的应用程序会话被终止。 – decoder 2014-09-24 15:34:16