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 262803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:32:54+00:00 2026-05-11T22:32:54+00:00

I just upgraded a hosted control to .NET 2.0 and I had to enable

  • 0

I just upgraded a hosted control to .NET 2.0 and I had to enable the ComVisible to access methods from the client side using javascript.

Should events also be accessible once I enable ComVisible? I was handling my events like this before with no issues:

<OBJECT id="foo" ...></OBJECT>

<script language="javascript">
     function document.all.foo::SampleEvent(res){
     //do stuff here
     }
</script>

This won’t work either:

<script language="javascript" for="foo" event="SampleEvent(res)">
     alert(res);
</script>

For some reason I can’t catch my events now. If I use my DLL in a WinForms project the event handles fine so I know I’ve set it all up properly.

How can I expose this to the client side properly?

Thanks

  • 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-05-11T22:32:54+00:00Added an answer on May 11, 2026 at 10:32 pm

    Just following up on this in case someone runs into it in the future. I had 2 mismatched data types in the user control which was causing the event not to fire properly.

    Check your data types!

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

Sidebar

Related Questions

I just upgraded my project to .NET 3.5 and thought I had a perfect
I have several projects that I just upgraded from Visual Studio 2003 and ASP.NET
I just upgraded my project from ASP.NET MVC1.0 to ASP.NET MVC4.0 One thing that
I just upgraded packages in an MVC 3 project (ASP.net 4), and now I
I just upgraded our Hudson from 2.2.0 to 2.2.1 to fix a known bug
I just upgraded from SnowLeapord to Lion and now cannot create virtualenvs. I understand
I just upgraded Xcode from 4.2 to 4.3.3. I then launches iOS Simulator (with
I just upgraded my Leopard system to Snow. I had a Rails application with
Just upgraded a MBP 2009 from Snow Leopard to Lion. MySQL seems to be
I just upgraded my PHP version from v5.3.1 to v5.3.9 . Suddenly class constructors

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.