D
Dmitri Demyanik
Hi,
I have written ActiveX control.
When I run aspx page, I get message:
"Object doesn't support this property or method", e.g
CardReader.Run(); line.
But it works fine in simple test html page. Why it does not work in ASPX?
In debugger I see that CardReader is not null.
Here is the code from aspx page:
<html>
<head>
<title id="title1" runat="server">WebForm1</title>
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
<link id="link1" runat="server" href="" type="text/css"
rel="stylesheet"/>
<script For="CardReader" EVENT="OnSwiped(data)">
alert(data);
</script>
<script>
function test()
{
CardReader.Run();
}
</script>
</head>
<body onload="test()">
<OBJECT id="CardReader"
CLASSID="CLSID:CE94EA7C-DD0A-4082-8540-D45863EA65A6" VIEWASTEXT></OBJECT>
<form id="Form1" method="post" runat="server">
</form>
</body>
</html>
Thank you,
Dmitri
I have written ActiveX control.
When I run aspx page, I get message:
"Object doesn't support this property or method", e.g
CardReader.Run(); line.
But it works fine in simple test html page. Why it does not work in ASPX?
In debugger I see that CardReader is not null.
Here is the code from aspx page:
<html>
<head>
<title id="title1" runat="server">WebForm1</title>
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
<link id="link1" runat="server" href="" type="text/css"
rel="stylesheet"/>
<script For="CardReader" EVENT="OnSwiped(data)">
alert(data);
</script>
<script>
function test()
{
CardReader.Run();
}
</script>
</head>
<body onload="test()">
<OBJECT id="CardReader"
CLASSID="CLSID:CE94EA7C-DD0A-4082-8540-D45863EA65A6" VIEWASTEXT></OBJECT>
<form id="Form1" method="post" runat="server">
</form>
</body>
</html>
Thank you,
Dmitri