Hi Sumeet,
$ is not defined
This error can only be caused by one of the following:
- Your JavaScript file is not being properly loaded into your page
- You have a botched version of jQuery. This could happen because someone edited the core file, or a plugin may have overwritten the $ variable.
- You have JavaScript running before the page is fully loaded, and as such, before jQuery is fully loaded.
Make sure all jQuery JavaScript code is being run inside code block:
$(document).ready(function () {
//your code here
});
Sys is not defined
Check Sys using undefined condition.
if (typeof(Sys) !== 'undefined') {
}
Add the following on web.config
Under <assemblies> section
<add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Under <httpHandlers> section
<add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>