
ActiveX control event not working when in asp.net page
I have to admit that I am stumped by this one!
I have a web page (asp.net) that contains the following HTML. It just
displays a activex login control which raises a 'Login' event when a
button is clicked and this event is handled by some VBScript. (The
HTML has been simplified for testing).
If I run this on my machine, as an asp.net page, I get no messagebox.
Either the event is not being raised or it is not being handled. If I
right-click|view source & copy the HTML and paste it into a simple
HTML editor and preview it, everything works fine!
I have tested the control and I know that it *can* work on a web page
so why is it not working when served up as an asp.net page on my local
machine? The control and the vbscript handler are client-side so it
shouldn't matter whether this is an asp.net page or an html page,
should it?
Any ideas please?
Thanks!
Ian
HTML Follows...
Codebehind="Login.aspx.vb" Inherits="KickApp.Login"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Login</title>
<link rel="stylesheet" href="Styles.css">
<script language="vbscript">
sub Login_Login(User,PW)
msgbox User & ":" & PW
end sub
</script>
</HEAD>
<body>
<OBJECT id="Login" height="103" width="200"
classid="CLSID:D5D57056-643B-443B-8FF0-505CD6A8AAB6" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="5292">
<PARAM NAME="_ExtentY" VALUE="2725">
<PARAM NAME="Key"
VALUE="kasjhmniopjzxp89cuhqwejnd98uapd98qwfyhjkwho7s8lvajsdfhwerhfkjewa8yewf89hwaefhasdufhsdfu8hwehyfuhadifhsadukhfsdiufhsduhfsdhfusdhf">
</OBJECT>
</body>
</HTML>