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

OCX in ASPX

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


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

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Robert" <al*****@ca.com> wrote in message
news:0b****************************@phx.gbl...
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


Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.