all groups > asp.net announcements > january 2005 >
You're in the

asp.net announcements

group:

Accessing Properties ActiveX


Accessing Properties ActiveX Charles A. Lackman
1/12/2005 10:44:46 AM
asp.net announcements:
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

Re: Accessing Properties ActiveX Curt_C [MVP]
1/12/2005 1:44:52 PM
Does MyControl1 have a runat=server?
Also, please stop posting these to the .announcements group, this isn't an
announcement!

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


[quoted text, click to view]

Re: Accessing Properties ActiveX Charles A. Lackman
1/12/2005 2:13:03 PM
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

[quoted text, click to view]

AddThis Social Bookmark Button