Currently, I am start to use ext.net mvc. So, everything is new for me. Please help me for it. It is showing ext is not defined. I think that it is missing some js file.I created Indext.cshtml and code as below: Thank you in advance.
@{
ViewBag.Title = "Index";
}
<script>
Ext.onReady(function () {
alert('start');
var myparams1 = new Object();
myparams1.id = 1;
Ext.Ajax.request({
url: 'Services/AService.svc/GetMyData'
method: 'GET',
success: function (response, options) {
// response callback
alert('Success');
},
failure: function (response, options) {
Ext.MessageBox.alert('Failed', 'Unable to get');
}
});
});
</script>