473,474 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Accessing Properties ActiveX

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
2 878
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Phillips | last post by:
Here is what I am trying to do. I have an application that is written in VB 6 and in this application it is accessing a custom dll file that was created using Microsoft Fortran Professional 4.0....
13
by: Alek Davis | last post by:
Hi, Is it possible to access intrinsic ASP objects, such as Request, from a .NET class. Say, I have a .NET library exposed via a COM or COM+ wrapper. Can this library retrieve the request info...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
1
by: drk.kumar | last post by:
I have an implementation issue with WMI scripts to check the user machine processor. The implementation is working fine in the local machine (Windows XP operating system). It is throwing script...
1
by: nandakumar.raghu | last post by:
Hi, I have written a javascript function that acceses properties from an activex object. - <OBJECT id="alertObj" classid="clsid:AEE77194-B98F-4E0E-A27F-4AD6B23F0038"></OBJECT> function...
1
by: miskomisko | last post by:
..net v2.0, VS 2005, VB6 Hi, I try to import my vb6 application to vb .net. The application uses my special activeX component which i want to import. When i import ocx file. Component is...
1
by: lonertic | last post by:
Hi, I'm new to the forum, I'm hoping someone can help me with this because days of googling and lots of coffee hasn't so far..maybe I'm not using the right keywords to search.. I don't know.. ...
0
by: porksmash | last post by:
I'm developing an app here that uses ActiveX controls to connect to industrial cameras over Ethernet. I want to be able to dynamically create those controls at runtime based on how many cameras are...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.