I am trying to pass value from pop up window to controller.
i am getting the value from popup and passing value through ajax using jquery, but i am unable to pass this value to controller and getting the error "Not Found".
.js
function
OnClickEditNotes() {var notes = document.getElementById('EditNotes').value //$('#EditNotes')alert(notes);
$.ajax(
{ url:
var form = $("form");'/AccountInformation/UpdateEditNote',//url: form.attr("action"),type:
dataType:
traditional:
data: { id: notes },
success:
},
error:
"POST","text",true,function (result) {function (req, status, error) {debuggeralert(req.responseText);
alert(
}
});
"Sorry!");
controller
=========
[
{
}
AcceptVerbs(HttpVerbs.Post)]public ActionResult UpdateEditNote(string str)Debug.WriteLine("EditNotePopup");return View();
can you plz look in to this. I want to pass the value to controller.