Articles in this section
Category / Section

How to resolve .NET Web Forms "runtime error" with MaskEditTextBox control?

3 mins read


JavaScript runtime error: ‘$’ is undefined

Runtime error

Figure 1: JavaScript runtime error: ‘$’ is undefined


The error arises when jQuery script file is not referred in the corresponding web application.


To resolve the error on undefined ‘$’, add jQuery script to the application and refer to the script files in the required page. In order to render the Syncfusion ASP.NET controls, refer to the dependent jQuery scripts and the Syncfusion specific script files.

Refer to the base jQuery script before the Syncfusion scripts, as “ej.web.all.min.js” and other EJ scripts depend on jQuery script file. Ensure the order of adding script references to avoid errors with dependent script files.

Now, the references for required files in Site.Master page is added. Refer to the following code example.


<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="ProjectName.SiteMaster" %>
<!DOCTYPE html>
<html lang="en">
<head runat="server">
    <%--Required CSS references for Syncfusion control rendering--%>
    <link href="Content/ej.widgets.core.min.css" rel="stylesheet" />
    <link href="Content/flat-lime/ej.theme.min.css" rel="stylesheet" />
    <%--Required script references for ASP.NET controls--%>
<%--Refer the base jquery script before referring all other script files--%>
        <script src="Scripts/jquery-1.10.2.min.js"></script>
        <script src="Scripts/jquery.easing-1.3.min.js"></script>
        <script src="Scripts/jquery.globalize.min.js"></script>
        <script src="Scripts/ej/ej.web.all.min.js"></script>
        <script src="Scripts/ej/ej.webform.min.js"></script>    
    <%--Your body content here--%>


A new version of Essential Studio for ASP.NET is available. Versions prior to the release of Essential Studio 2014, Volume 2 will now be referred to as a classic versions.The new ASP.NET suite is powered by Essential Studio for JavaScript providing client-side rendering of HTML 5-JavaScript controls, offering better performance, and better support for touch interactivity. The new version includes all the features of the old version, so migration is easy.

The Classic controls can be used in existing projects; however, if you are starting a new project, we recommend using the latest version of Essential Studio for ASP.NET. Although Syncfusion will continue to support all Classic Versions, we are happy to assist you in migrating to the newest edition.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below.

You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment