Asp and asp.net solutions sharing session
In the original asp procedures used asp.net add function modules, SESSIONs sharing is a difficult, here's a more concise way, in the asp and asp.net sharing session in the session.
Login pages using C # re-create, in the successful implementation of statements Login:
Response.Write ( "<script language='javascript'> window.open ( 'ASPXTOASP.aspx', 'new');</ script>");
Aspxtoasp.aspx opening pages, set aspxtoasp.asp action, the session will be to the value of post asp pages, because it is a one-way transmission, in the other pages do not have to repeat the implementation of actions, tested, transfer success!
Aspxtoasp.aspx code as follows:
<script Language="C#" runat="server">
Response.Write ( "<form name=t id=t action=ASPXTOASP.asp method=post>");
Foreach (object it in Session.Contents)
(
Response.Write ( "<input type = hidden name =" + it.ToString ());
Response.Write ( "value =" + Session [it.ToString ()]. ToString () + ">");
)
Response.Write ( "</ FORM>");
Response.Write ( "<scr" "ipt> t.submit ();</ scr +" + "ipt>");
</ Script>
Aspxtoasp.asp code as follows:
<%
For i = 1 to Request.Form.Count
Session (Request.Form.Key (i)) = Request.Form (i)
Next
Response.End
%>
<script Language="JavaScript">
Window.close ();
</ Script>








0 Comments to “Asp and asp.net solutions sharing session”
No Comments. Send your comment.
Leave a Reply
You must be logged in to post a comment.