install.txt
来自「asp.net和asp如何通用一个Session」· 文本 代码 · 共 20 行
TXT
20 行
INSTALLATION
1) Run the SQL Query in "ASPSessionState.sql" on the database which will hold the temporary Session information.
2) Copy the .asp and .aspx.* (SessionTransfer.aspx and SessionTransfer.aspx.cs) files to a folder on your website.
3) Update connection object information in the "SessionTransfer.asp" and "SessionTransfer.aspx.cs" files. It is located in three places in each file (sorry about not consolidating the connection info).
4) Compile the aspx files.
5) The .asp and .aspx.* files must all reside in the same folder to work.
USAGE
For use in a Hyperlink (Anchor Tag) or a Response.Redirect, set the destination URL to be one of the following
:
FROM a ASP "Classic" page
SessionTransfer.asp?dir=2aspx&url=<asp_dotnet_url>
FROM an ASP.NET page
SessionTransfer.aspx?dir=2asp&url=<asp_classic_url>
The code will transfer the Session information and Redirect the user to the url specified by <asp_dotnet_url> or <asp_classic_url>.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?