检查母版页上的会话

时间:2021-10-01 15:56:20

How can I check a session on a master page?

如何检查母版页上的会话?

1 个解决方案

#1


1  

I hope I have this right, your question is a little short.

我希望我有这个权利,你的问题有点短暂。

You don't check session on the master, you check your session in the controller or higher and then pass a model to the view.

您不检查主服务器上的会话,检查控制器或更高级别的会话,然后将模型传递给视图。

The view data can be grabbed from the master and you can then perform an action based on what is returned.

可以从主服务器获取视图数据,然后您可以根据返回的内容执行操作。

If this is not what you're after then please post more details on the exact nature of what you are trying to achieve.

如果这不是你想要的,那么请发布更多关于你想要达到的确切性质的细节。

#1


1  

I hope I have this right, your question is a little short.

我希望我有这个权利,你的问题有点短暂。

You don't check session on the master, you check your session in the controller or higher and then pass a model to the view.

您不检查主服务器上的会话,检查控制器或更高级别的会话,然后将模型传递给视图。

The view data can be grabbed from the master and you can then perform an action based on what is returned.

可以从主服务器获取视图数据,然后您可以根据返回的内容执行操作。

If this is not what you're after then please post more details on the exact nature of what you are trying to achieve.

如果这不是你想要的,那么请发布更多关于你想要达到的确切性质的细节。