By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,959 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,959 IT Pros & Developers. It's quick & easy.

Accessing Properties ActiveX

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
"Charles A. Lackman" <Ch*****@CreateItSoftware.net> wrote in message
news:eG****************@tk2msftngp13.phx.gbl...
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

Nov 19 '05 #2

P: n/a
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

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
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
"Charles A. Lackman" <Ch*****@CreateItSoftware.net> wrote in message
news:eG****************@tk2msftngp13.phx.gbl...
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


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.