Windows control in .ASPX page

K

Karthikeyan.T.S

I have an .ASPX page in which a DLL (WindowsControlLibrary) has been embedded
through the <OBJECT> tag. I am able to get the control visually by calling it
in the JavaScript.But I am unable to access the Public property/methods from
that WindowsControl.I am using .NET Framework 2.0.
What would be the reason for this ?
Kindly advise.
 
A

Alessandro Zifiglio

After the enron dispute over their patent on embedded content, microsoft has
supplied an update which now prevents you from automatically interacting
with an embedded object, like a flash movie, or your winforms control hosted
in IE. You have to activate it first. I am not sure what you are dealing
with here but it seems to me that its not activated. Activation can be made
by clicking on the object first after its downloaded by the browser. To work
around this, you can embedd the object in script.

you can refer to this document on msdn :
http://msdn.microsoft.com/library/d.../author/dhtml/overview/activating_activex.asp

I am not sure if you were already aware of all this and if it has nothing to
do with the issue you are facing, i'm just making a wild guess =P

Regards,
Alessandro Zifiglio
http://www.AsyncUI.net
 
S

Steve C. Orr [MVP, MCSD]

It the properties dialog for your windows control library project, go to the
application tab and then click on the "assembly information..." button.
Then check the "make assembly COM-Visible" checkbox. Click ok, then rebuild
the control.
Now you *should* be able to call the public properties & methods of the
control.
 

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

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top