Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Web部件e Aspx与Sharepoint 2007之间的会话_C#_.net_Asp.net_Sharepoint_Sharepoint 2007 - Fatal编程技术网

C# Web部件e Aspx与Sharepoint 2007之间的会话

C# Web部件e Aspx与Sharepoint 2007之间的会话,c#,.net,asp.net,sharepoint,sharepoint-2007,C#,.net,Asp.net,Sharepoint,Sharepoint 2007,Web部件e Aspx与Sharepoint 2007之间的会话 我试图在会话中传输一些信息,但使用Response.Redirect无效。 当我使用Server.Transfer(url)时,需要转到/site test/_layouts/teste.aspx,但仅在我使用Server.Transfer和_layouts/teste.aspx时有效 有人能帮我吗?Server.Transfer和Response.Redirect在SharePoint中不起作用,应该改用。此外,默认情况下,SH

Web部件e Aspx与Sharepoint 2007之间的会话 我试图在会话中传输一些信息,但使用Response.Redirect无效。 当我使用Server.Transfer(url)时,需要转到/site test/_layouts/teste.aspx,但仅在我使用Server.Transfer和_layouts/teste.aspx时有效


有人能帮我吗?

Server.Transfer和Response.Redirect在SharePoint中不起作用,应该改用。此外,默认情况下,SHarePoint中不启用会话(我认为仅在多服务器场中)。您必须在管理中心启用它。请看如何做到这一点

请注意,当前端位于负载平衡器后面时,会话可能是一件棘手的事情,如果没有设置为粘性会话,回发可能会失败


另一件事,如果您希望Web部件进行通信,那么有一种机制可以实现这一点,Sahil Malik介绍了基本知识(ASP.NET),以及如何在Sharepoint中实现这一点。有关更多信息,请在谷歌上搜索。

Eduardo,你能修改你的问题吗?这真的没有意义。我认为你需要解释你想做什么-很可能使用会话是错误的(或者肯定不是唯一的方法)。科林,谢谢你的回答。。。问题解决了。我使用SPPersistedChildCollection进行缓存。