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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:29:53+00:00 2026-05-28T04:29:53+00:00

I am using a 3rd party control in a website project in VS 2010

  • 0

I am using a 3rd party control in a website project in VS 2010 that runs upon the 3.5 framework (yes, I need to upgrade it to 4.0 but I’m lazy). The 3rd party control has various client side events that can be handled using javascript. For example, it has an OnClientDoubleClick event:

<myUserCtrl:SpecialView ID="ucSpecialView" runat="server" OnClientDoubleClick="myDoubleClick">
</myUserCtrl:SpecialView>

and the accompanying javascript goes something like:

<script type="text/javascript" language="javascript">
  function myDoubleClick(sender, args) {
    // and we do whatever we need to in here
  }
</script>

I am using masterpages and I have the javascript above located within the header content holder for the child page (basically I’m saying that I have the javascript in the right spot and I haven’t just plopped it down somewhere in the middle of my page).

My problem:
Using IE’s Developer Tools (found in the menu bar or by hitting F12), if I attempt to view the webpage with the Browser Mode set to “Internet Explorer 7” then I get a javascript error.

Microsoft JScript runtime error: ‘myDoubleClick’ is undefined

However, if I view the webpage by setting the Browser Mode to “Internet Explorer 8” then I do not see the javascript error and the control functions as it should (including the javascript function myDoubleClick).

Is this a problem with my 3rd party control (do I need to contact my vendor and bug them)? Or is it a problem with my code? I’ve done a decent amount of googling and scouring my code and I can’t seem to come up with anything.

EDIT:
It appears that another developer has included some javascript functions that run in the masterpage. Said functions are within a script tag that is itself within a div tag for reasons of which I’m not certain (although the div tag has runat attribute set to “server” and so I suspect its because the script tags are pulling some client id’s for one reason or another). In any case, this is highly unorthodox as the div tag surrounding the script tag is within the header tag (ie – div tags don’t belong in the header tag). This does appear to be the culprit. I did some testing and found that if I placed myDoubleClick function in the script tag that resides in the masterpage then the javascript error doesn’t occur on page load like it used to. However, this isn’t a viable solution since my javascript function also pulls upon various client id’s of controls of the child webpage and therefore must be located in the content place holder of the child webpage.

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  <script type="text/javascript" language="javascript">

    function myDoubleClick(sender, args) {
      if (confirm("Are you sure you want to delete this node?")) {
        $get("<%= btnDeleteNode.ClientID %>").click(); //full postback for delete node
      }
    }

  </script>
</asp:Content>
  • 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-28T04:29:53+00:00Added an answer on May 28, 2026 at 4:29 am

    The rendered HTML probably doesnt include arguments in the method call, so remove sender, args from your function.

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

Sidebar

Related Questions

I am using a 3rd party control that exposes a bunch of dependency properties
In my Java SWT application I'm hosting an 3rd party ActiveX control. I'm using
I'm using a 3rd party DLL written in unmanaged C++ that controls some hardware
The project I'm on is using a 3rd party component to build dynamic PDFs
In my current project I am using a 3rd party library which has no
I'm new to threads. I'm using a 3rd party library that uses threads which
I am using a 3rd party control to read barcode from a bitmap file.
We are working on using a 3rd party's ActiveX control within a web page.
There are a few different 3rd party code frameworks that include calendar controls, but
I am using a 3rd party control which is descended from TComponent and I

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.