Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
This is an old topic, because recently used, so there is no way to find information everywhere. Microsoft's Web site is provided by the database, always feel too cumbersome, but also said to use directly, but I did not try to succeed. I think it's impossible to use it directly. There is another way, is through a few page conversion, I use this method, by summing up the search to the data, sorted out after a few pages to convert. Mainly through the hidden input to achieve. The specific methods are as follows:
ASP goto asp.net page:
With an ASP page, the session information is written to the input, submitted to the ASP.net page
Session ("name") = "SRX"
Session ("id") = "1"
Session ("sex") = "F"
Session ("pass") = "Asdfas"
Session ("age") = "23"
Session ("weight") = "131"
Response.Write ("<form name=frm id=frm action=" "asptoaspx.aspx" "Method=post >")
For each Item in session.contents
Response.Write ("<input type=hidden name=" & Item)
Response.Write ("Value=" & Session (Item) & ">")
If Len (Request.QueryString ("Destpage")) >4 Then
Response.Write ("<input Type=hidden name=destpage value=" & Request.QueryString ("Destpage") & ">")
Response.Write ("<SCR" + "ipt>frm.submit (); </SCR" + "ipt>")
<%@ Page language= "C #"%>
<script language=c# runat=server>
private void Page_Load (object sender, System.EventArgs e)
Session.Timeout = 60;
for (int i=0;i<request.form.count;i++)
Session[request.form.getkey (i)]=request.form[i]. ToString ();
Allsession (); Output all sessions, annotated when used
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.