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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:30:30+00:00 2026-06-08T21:30:30+00:00

I keep getting the following error message: Microsoft JScript runtime error: ‘$’ is undefined

  • 0

I keep getting the following error message:
Microsoft JScript runtime error: ‘$’ is undefined

I’ve included the jquery ui js file like so:

      <html xmlns="http://www.w3.org/1999/xhtml">
         <head runat="server">
         <title>jquery Test Page</title>
          <script src="@Url.Content("~/Scripts/jquery-1.4.1.js")" type="text/javascript"></script>

         <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11-min.js")" type="text/javascript"></script>

         <script>
              $(function () {
              $('#startdate').datepick({ dateFormat: 'dd/mm/yyyy' });
              });        
         </script>
         </head>
        <body>
           <form id="form1" runat="server">
             jquery date picker test: <asp:TextBox ID="startdate" runat="server"></asp:TextBox>
           </form>
        </body>
        </html>

I think the problem is with the URL.CONTENT include – the compiler is complaining that it can’t find the js files in the Url.Content line. But i can see them in my solution folder – they are definitely included in the Scripts folder. I think its my quotes but I can’t figure out what it is. I’ve tried changing the actual file name inside the Url.Contents to have single quotes instead of double quotes. But that didn’t resolve the problem. I’ve also tried no quotes.

Perhaps you can see what I’m missing – i’m sure its something simple that i’m overlooking.

  • 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-08T21:30:32+00:00Added an answer on June 8, 2026 at 9:30 pm

    Some things I see:

    1. Bad link? Your jQuery UI link may be wrong. Usually the name of the file in ASP.NET MVC initial setup project (and I’m assuming that’s what you are using here for a basis) is jquery-ui-1.8.11.min.js. May need to change the dash to a dot after “11”. But without seeing your setup in VS I cannot be sure.
    2. Wrong UI method. “datepick” isn’t a valid method in the jQuery UI. If you are trying to instatiate a datepicker you should use datepicker instead.
    3. ASP.NET controls. If this is an MVC project (and once again I assume it is) you shouldn’t be using the asp:TextBox. Use an input tag instead.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting the following error message ERROR 1064 (42000): You have an error
What is wrong with the statement below? I keep getting the following error message....
Following the RailsTutorial, I keep getting this error message (one of four actually) when
Following the RailsTutorial, I keep getting this error message (one of four actually) when
I keep getting the following error message when I run my code in debug.
I keep getting the following error message when trying to UPDATE one of my
I keep getting the following error message at compile time: The name 'Message' does
I keep getting the following error: 'function' object has no attribute 'objects' for Like.
I keep getting the following error: Parse error: syntax error, unexpected T_SL in /home/a4999406/public_html/willingLog.html
I keep getting the following error: AttributeError: Caribou instance has no attribute 'on_key_up' The

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.