.net activeX object
- by Ali YILDIRIM
Hi,
I am trying to use my .net image editor user control as an activeX object in a web form.
After internet search, I created a asp.net web site from VS2008 and added the following code
<object classid="res/ImageEditor.dll#ImageEditor.Editor"
height="400" width="400" id="myControl1" name="myControl1" >
</object>
<INPUT id="Button1" type="button" value="Btn" name="Btn" onclick="return Button1_onclick()">
</script>
<script language=javascript>
function Button1_onclick() {
alert(document.getElementById("myControl1").WatermarkText);
}
</script>
I have two problems
1-) When i first create the project i see the user control on browser but, after rebuilding the user control and changing the dll file at web site, the object no more appears on browser. Instead i see something like an error image.
2-) i can not access public properties.
The user control is marked as "make com visible", and register for com is checked at properties.