Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 527k

Error-Failed to load resource: the server

Jun 18 2021 5:00 PM

Hi

Error - Failed to load resource: the server responded with a status of 404 (Not Found)    @Url.Action(%22CreateEdit%22,%20%22Customer%22)?Id=C04:1 

$('body').on('click', '[id*=btnEdit]', function () {
        hfAU = "U";
       
        var data = $(this).parents('tr').find('td');
        var Id = data.eq(0).html();

        $.ajax({
            type: "Get",
            url: '@Url.Action("CreateEdit", "Customer")',
            data: { Id: Id },
            success: function (data) {
                $('#myModalBody').html(data);
                $('#myModal').modal('show');
            }
        })
    });

[HttpGet]
        public ActionResult CreateEdit(string Id)
        {
            return PartialView("_CreateEditCustomer", dbCustomer.GetById(Id));
        }

Thanks


Answers (2)