|
-
Oct 12th, 2000, 03:54 AM
#1
Thread Starter
Lively Member
Hi,
How do I get a value from an ActiveX control that I put in a ASP page?
This is the code I use:
<OBJECT CLASSID="clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1" ID="dtpFrom" HEIGHT=30 WIDTH=120>
I get an error when I send the value in a hidden INPUT tag as VALUE=<%=dtpFrom.Value%>.
Thanks in advance.
-
Oct 12th, 2000, 04:33 AM
#2
Frenzied Member
it looks to me that the activeX control is Client-side but you are trying to set VALUE using Serverside <% %> stuff.
is this the case?
you could try setting the hidden field value using Javascript in the <BODY> onLoad event
<BODY onLoad="document.formName.HiddenFieldName.value=document.dtpFrom.Value">
I have no idea whether or not this will work though because I never use Client-side activeX stuff!
-
Oct 12th, 2000, 10:02 AM
#3
Frenzied Member
Create a hidden INPUT tag. In the onsubmit event for the form, put the contents of the ActiveX control's value into the value of the hidden INPUT tag and reference the value in the INPUT tag on your processing page.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|