Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, how to pass a value from classic asp page to vb.net page without passing the value from response.redirect.
if i pass it from response.redirect it is shown in the url even i encript it and send it is not safe.
i want to send the value in hidden manner.
i tried using session but it dosent seems to be working as i am catching the value storing it in a session variable on asp page and then fetching it on a vb.net page.

The value i am passing is critical so needs to be sent in a hidden manner
Posted

1 solution

Use xmlhttp method and post it to your asp.net page:

JavaScript
<%@language=JScript%>
<%
   var objSrvHTTP;
   var objXMLDocument;
   objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.6.0");
   objXMLDocument = Server.CreateObject ("Msxml2.DOMDocument.6.0");
   
   objXMLDocument.async= false;
   objXMLDocument.loadXML ("<msg><id>MyValueToTransfer</id></msg>");//add multiple nodes if you have multiple values.
   
   objSrvHTTP.open ("POST","http://someotherserver/PostHandler.aspx",false);
   objSrvHTTP.send (objXMLDocument);
   Response.ContentType = "text/xml";
   Response.Write (objSrvHTTP.responseXML.xml);
%>


Then you handle posted data from aspx. Also take care to select proper xmlhttp based on browser. You get to know the stuff from google.
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900