OCX in ASPX

R

Robert

Two ways:
1. Create the OCX by dropping it on the page.
2. Create it dynamically on page load.

With method 1. The OCX appears but can't change its
properties or call its fuctions.

With method 2. The OCX never appears, and can't figure out
how to add it to the page, but its properties and
functions can be called.

Is there any way to get either or both of these to work?

Development is in C#.

Thanks,
Robert Alkire
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hello Robert,

OCXs are client-side controls, so you can just insert the properly written
<OBJECT> tag into the HTML view of the page. Of course this tag shouldn't
have the RUNAT="Server" attribute and, since OCXs are client-side beasts,
you will be accessing their properties from the client-side JavaScript code.
 

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

Top