In one page of my application I get Type is undefined error on the AJAX script.
Why would this be?
Error message:
Type is not defined
MicrosoftMvcAjax.js()()Microsof...vcAjax.js
(line 6)
[Break on this error]
Type.registerNamespace('Sys.Mvc');
Sys.Mv...reate_AjaxOptions=function(){return {};}`
You have to add a reference to MicrosoftAjax.js as well
<script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
You can start off by installing Firebug for Firefox - it will give you a better error message complete with a call stack.
Sounds like you are trying to instantiate something that is not defined, perhaps you didn't include a javascript file?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With