Hello All,
just a simple question.
How to pass variable from ActiveX control to parent .asp page and back? Or create a session variable from ActiveX?
Thanks.
Printable View
Hello All,
just a simple question.
How to pass variable from ActiveX control to parent .asp page and back? Or create a session variable from ActiveX?
Thanks.
Call the page through ActiveX control with query strings.
Thanks. It works, but I need to hide variable from user.
Is it possible at all?
It is definitely possible if you know how to execute a POST method using the Inet Control.
Excellent! Could you post a code sample then?
Thanks.
:( Sorry, but I don't know how to create a POST data. All I know is that the data is in the headers of the page.
Use the MSXML.HTTP object to post to an ASP page.
here,
in the page that posting the data:
<form action="filename.asp" method="post">
<input type="hidden" name="myField" id="myField" value="xxx"></input>
</form>
and the page "filename.asp" that will receive that data:
<%
dim myField
myField = Request.Form("myField")
%>