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

  • Home
  • SEARCH
  • 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 4624818
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:11:02+00:00 2026-05-22T03:11:02+00:00

I am using asp.net 4.0. i am creating the Url with the help of

  • 0

I am using asp.net 4.0. i am creating the Url with the help of “routes.MapPageRoute”.

so i noticed that jquery file was not gettin loaded due to url not being static. so i used
“ResolveClientUrl”. I could load the js files but in jquery code i get error.

I did ask this same question on
http://forums.asp.net/t/1680184.aspx/1?Jquery+Error+Object+Doesn+t+support+this+method+or+property+

I have given the image for the error also..
please anyone can guide me where am i going wrong.

I somehow feel that i have issue due to the pattern i am writting url in global file.

Code:

<asp:Content ID="content1" runat="server" ContentPlaceHolderID="HeadContent">
    <link href="../js/fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" />
     <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js" type="text/javascript"></script>
     <script src='<%=ResolveClientUrl("~/js/fancybox/jquery.fancybox-1.3.4.js")%>' type="text/javascript"></script>
     <script src='<%=ResolveClientUrl("~/js/fancybox/jquery.easing-1.3.pack.js")%>' type="text/javascript"></script>
     <script src='<%=ResolveClientUrl("~/js/fancybox/jquery.mousewheel-3.0.4.pack.js")%>' type="text/javascript"></script>
    <script type="text/javascript">
        $.noConflict();
        $(document).ready(function () {
            $(".fancyYoutube").fancybox({
                'transitionIn': 'elastic',
                'transitionOut': 'fade',
                'width': 680,
                'height': 495,
                'type': 'swf'
            });
        });
    </script>
</asp:Content>

Error:
enter image description here

  • 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-22T03:11:03+00:00Added an answer on May 22, 2026 at 3:11 am

    You need to remove $.noConflict(); from the beginning of code; or if you want to keep it, you should not use $ in the lines following it:

    Solution 1:

    // $.noConflict(); <-- comment or remove this line
    $(document).ready(function () {
      $(".fancyYoutube").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'fade',
        'width': 680,
        'height': 495,
        'type': 'swf'
      });
    });
    

    Solution 2:

    $.noConflict();
    jQuery(document).ready(function () {
      jQuery(".fancyYoutube").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'fade',
        'width': 680,
        'height': 495,
        'type': 'swf'
      });
    });
    

    Explanation:
    As the docs say, you use $.noConflict() to tell jQuery do not use $ and let other libraries use it. Here you have no other library, so you don’t need to relinquish jQuery’s control of the $ variable, so both solutions should work for you.

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

Sidebar

Related Questions

Using Asp.Net MVC I was creating a file downloader. The problem with the built
Is it possible to programmatically resolve a URL to a file using ASP.NET and
When creating a website using Asp.Net and using controls such as the ListView is
I am creating a mobile web application using asp.net. The application must support iPhone,
I'm creating a database application using ASP.NET and I want to make a Windows
I am creating web page using asp.net. Is it possible to remove/hide the browsers
I am creating a webpage which is using asp .net as its backend. I
When I'm creating a user for my web application, an SMTP email (using ASP.NET's
using c# (asp.net) i'm programmatically creating several drop down lists (random number). the user
I'm creating an application using the ASP.NET MVC 1 framework in C#, where 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.