I have this code in the client side:
$.post('<%=Url.Action("Action_Name","Controller_Name")%>', { serverParam: clientParam}, null, null);
And this code in the server side:
[HttpPost]
public ActionResult Action_Name(string serverParam)
{
return View();
}
I currently am in a view and when i click a button i want to be redirected to Controller_Name
/Action_Name
/serverParam
.
After the post i am sent in the action method but i still see the old view, not Action_Name
(Action_Name.aspx
exists)
(I am using mvc 2)