Accessing Properties ActiveX

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
 
C

Curt_C [MVP]

Does MyControl1 have a runat=server?
Also, please stop posting these to the .announcements group, this isn't an
announcement!
 
C

Charles A. Lackman

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top