.JS Script
$("#drpdwn").change(function ()
{
var filter1 = document.getElementById("drpdwn").value;
window.location = '/Controller/GetByFilter?filter=' + filter1;
});
Action Method in Controller:
public ActionResult GetByFilter(string filter)
{
var model = obj.GetByFilter(filter);
return View(model);
}
Encountering a 404 error on the server, while the code functions correctly on localhost. The problem seems to be related to the URL format but requires further investigation for resolution.