ActiveX control event not working when in asp.net page 
Author Message
 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>



Sun, 16 Oct 2005 01:54:11 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. FileCopy not working from asp.net page

2. Help: ActiveX control works in VB6 but not in VB.Net

3. ASP.NET Session Not Persisting Between Pages (and Projects)

4. vbscript not working in asp pages

5. Object in ASP page not firing events

6. ASP pages work in PWS but not in IIS

7. ASP page does not work?

8. WMI and ASP pages not working

9. asp.net datagrid training/book code not working

10. raising an event from an activeX control on a htm page in a webbrower control

11. Shell function in VB6 COM not working in ASP after installing .Net

12. raising an event from an activeX control on a htm page in a webbrower control

 

 
Powered by phpBB® Forum Software