|
 |
asp_components thread: ActiveX control to ASP Page
Message #1 by "Guru Prasad" <s_guru_prasad@h...> on Wed, 14 Mar 2001 04:20:00
|
|
Can any one say how to pass values from an ActiveX component to as ASP
page. Say for Example I have an login dialog with an ActiveX control. I
have a submit button in my ASP Page. when I click submit I must pass the
values from the ActiveX control to my ASP page. How can this be Achieved.
Message #2 by "O'Hara, Elliott M" <EMOHARA@k...> on Wed, 14 Mar 2001 07:00:16 -0500
|
|
This is how I do it, better way? I don't know, but this works.
<script language="javascript>
function submit1_onclick{
MyForm.hidden1.value=MyActiveX.whatevergetswhachawant
MyForm.submit
}
</script>
<form id="MyForm" blahblah>
<object id="MyActiveX" clsid="blahblahblah">
blahblahblah
</object>
<input type = "hidden" id="hidden1" name="hidden1">
<input type="submit" id="submit1" language="javascript" onclick="return
submit1_onclick()">
</form>
hope it helped
-----Original Message-----
From: Guru Prasad [mailto:s_guru_prasad@h...]
Sent: Tuesday, March 13, 2001 11:20 PM
To: ASP components
Subject: [asp_components] ActiveX control to ASP Page
Can any one say how to pass values from an ActiveX component to as ASP
page. Say for Example I have an login dialog with an ActiveX control. I
have a submit button in my ASP Page. when I click submit I must pass the
values from the ActiveX control to my ASP page. How can this be Achieved.
|
|
 |