Accessing Properties ActiveX

  • Thread starter Thread starter Charles A. Lackman
  • Start date Start date
C

Charles A. Lackman

Hello,

I have an ActiveX Control That has a Clear Property and a Text Property.

The Properties are accessible the following way (From the HTML Page):

<SCRIPT language="vbscript">

Sub OnClear
document.frmMain.MyControl1.Clear
end sub

Sub OnText
document.frmMain.MyControl1.Text
end sub

</SCRIPT>

How can I access these Properties from the Code Behind Page in ASPX?

i.e. Dim AString as string = MyControl1.Text

(Nothing Happends; MyControl1 is not shown in the code behind page)

Thanks,
Chuck
 
Does MyControl1 have a runat=server?
Also, please stop posting these to the .announcements group, this isn't an
announcement!
 
Hello,
The Control does not have a runat=server

When I add a runat=server it does not like the ClassID. The error says it
must have 4 dashes and 32 characters, but I have 4 dashes and 32 characters.

Any Suggestions?

I will stay way from posting questions in the announcments group.

Chuck
 
Back
Top