OCX in ASPX

  • Thread starter Thread starter Robert
  • Start date Start date
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
 
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.
 
Back
Top