G
Guest
Hi,
I've tried creating a very basic class library. It has one object and one
property. The property returns always the same string value. I then use the
<OBJECT> tag to embed the dll in my page. The dll and html sit in a root
directory on my IIS 6 server. Code is below:
namespace ClassLibrary1
{
public class myObject
{
public myObject()
{
}
public String AValue
{
get
{
return "hello";
}
}
}
}
The html code is as follows:
<html>
<body color=white>
<hr>
<OBJECT id="myControl1" name="myControl1"
classid="ClassLibrary1.dll#ClassLibrary1.myObject">
</OBJECT>
<INPUT id=TxtBox>
<script language="vbscript">
TxtBox.value = myControl1.AValue
</script>
<hr>
</body>
</html>
The html page returns the error "Object doesn’t support this property or
method".
I hope you can help - I must be missing something but I'm surely stuck!
Andrew
I've tried creating a very basic class library. It has one object and one
property. The property returns always the same string value. I then use the
<OBJECT> tag to embed the dll in my page. The dll and html sit in a root
directory on my IIS 6 server. Code is below:
namespace ClassLibrary1
{
public class myObject
{
public myObject()
{
}
public String AValue
{
get
{
return "hello";
}
}
}
}
The html code is as follows:
<html>
<body color=white>
<hr>
<OBJECT id="myControl1" name="myControl1"
classid="ClassLibrary1.dll#ClassLibrary1.myObject">
</OBJECT>
<INPUT id=TxtBox>
<script language="vbscript">
TxtBox.value = myControl1.AValue
</script>
<hr>
</body>
</html>
The html page returns the error "Object doesn’t support this property or
method".
I hope you can help - I must be missing something but I'm surely stuck!
Andrew