Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8130827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:52:19+00:00 2026-06-06T08:52:19+00:00

From another question I recently posted, it seems that Classic ASP might not be

  • 0

From another question I recently posted, it seems that Classic ASP might not be able to deal with events that an activeX object might throw.

Can anybody verify this or if it can, how do I do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:52:21+00:00Added an answer on June 6, 2026 at 8:52 am

    Is it possible to handle events from an activeX object in Classic ASP

    No, if you are speaking about COM events.
    But, Depending on what you mean by the word “event” the answer is “Maybe.”

    See Create COM/ActiveXObject in C#, use from JScript, with simple event

    It’s possible to create a COM class / ActiveX thing, instantiate it in JScript/Classic ASP, and have the COM class invoke a callback that is defined in the ASP page. This is not done via COM events, but it may satisfy your requirement.

    The ASP code might look like:

    <script language="Javascript" runat="server">
    
    var greet = Server.CreateObject("Ionic.Greet");
    
    greet.onHello = function(arg, num) {
        Response.Write("onHello (ASP) invoked.<br/>\n");
        Response.Write("  num = " + num + "  stat=" + arg.status + "<br/>\n");
    };
    
    response = greet.Hello("ASP");
    Response.Write("response: " + response + "<br/>\n");
    Response.Write("status: " + greet.status + "<br/>\n");
    
    </script>
    

    This works only if the COM class being created exposes a property that can be set, and then invokes the “Default method” on that property. Like this:

    public partial class Greet : IGreet
    {
        public Object onHello { get; set; }
    
        public String Hello(string name)
        {
            var r = FireEvent();
            return "Why, Hello, " + name + "!!!" + r;
        }
    }
    

    …where FireEvent is like this:

    private string FireEvent()
    {
        if (onHello == null) return " (N/A)";
        onHello
            .GetType()
            .InvokeMember
            ("",
             BindingFlags.InvokeMethod,
             null,
             onHello,
             new object [] {});
    
        return "ok";
    }
    

    Obviously if you have a COM class that cannot be changed, and it uses COM events, then this approach will not apply.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From another stackoverflow question, it seems that Android handles large bitmaps differently than other
Following on from a question I posted yesterday about GUIs, I have another problem
OK, so this is leading on from another question I asked here recently. Basically,
Recently I posted a answer to a question that I thought was quite an
I know this question is really open-ended. Recently migrated from one server to another
I recently posted this question about codes for a gift-card-like voucher that users can
Per a great answer from another question I have begun mounting global resources (css/js/images)
I've got the following code from another question on SO to track the changing
I found the following regex from another Stack Overflow question: Change an element's class
i get the html from another site with file_get_contens , my question is how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.