Hi
i have made a folder on server , where i copied my website made in mvc razor asp.net 4.0 .
the website uses ado model entity framework, i.e . all table classes are made in directory.
there is homecontroller, which is called ,
and i call autocomplete in js , where i tried as
$(".autosuggest").autocomplete({
source: function (request, response) {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "/Home/AutoCompleteCities",
data: "{'CityName':'" + request.term + "'}",
dataType: "json",
success: function (data) {
//response(data.d);
//alert(data);
response(data);
},
error: function (xhr, textStatus, errorThrown) {
alert("Going To : " + xhr.responseText + "-" + textStatus.responseText + "-" + errorThrown.responseText);
// document.write("Going To : " + xhr.responseText + "-" + textStatus.responseText + "-" + errorThrown.responseText);
}
});
}
,
select: function (event, ui) {
var selectedObj = ui.item;
var hname = selectedObj.value;
var hotelname = hname;//.substring(0, hname.indexOf('('));
$(this).val($.trim(hotelname));
return false;
}
});
but when i enter any key, it says
div id="header">
Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
</body>
</html>
-undefined-undefined
my website is copied in folder inside domain.
for exp.. www.mywebnew.com/demo
demo is my folder where i copied website (everything).
is it correct ??
I checked autocomplete in homecontroller , which is there.
also i tried ,
www.mywebnew.com/demo/home/about ,and this works...
(about is in Homecontroller) same like autocomplete
Pls check and letme know issue