FanTian wrote:
I want to insert an ActiveX control into asp .net web page, but it seems I
fall in trouble now.
When I insert the ocx control into toolbox and drag it to the web page, I
can't get its ID. and if I use the interop dll transformed with aximp.exe
from the ocx, I can't insert it into the tool box.
who can tell me what to do?
Thanks a lot!
Simple question to answer: Are you trying to use an activex component as
a server side object or as a client side object? aka do you want to call
the activeX object from the server side to process something or do you
want to have activex object inside your web page?
For the first, you need to create an interop dll that you get from
aximp.exe and reference it from your project (Add Reference in visual
studio should generate the interop dll for you).
For the second, you can just include the activex object as an object tag
in the html view of your page. In this case, you cannot manipulate the
object itself, just the tag, from the server side.
--
Sebastien Lambla [TheTechnologist]
The Geeky Lazy Bloggy
http://blog.thetechnologist.net