Click to See Complete Forum and Search --> : ActiveX and .asp variables passing.
VB6_User
Oct 7th, 2002, 01:13 PM
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.
amitabh
Oct 9th, 2002, 02:08 PM
Call the page through ActiveX control with query strings.
VB6_User
Oct 9th, 2002, 04:37 PM
Thanks. It works, but I need to hide variable from user.
Is it possible at all?
amitabh
Oct 10th, 2002, 01:19 AM
It is definitely possible if you know how to execute a POST method using the Inet Control.
VB6_User
Oct 10th, 2002, 07:57 AM
Excellent! Could you post a code sample then?
Thanks.
amitabh
Oct 10th, 2002, 08:14 AM
:( 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.
Lethal
Oct 13th, 2002, 03:34 AM
Use the MSXML.HTTP object to post to an ASP page.
deja
Oct 16th, 2002, 03:05 AM
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")
%>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.