JQuery and Patial view in MVC

Posted by Poomjai on Stack Overflow See other posts from Stack Overflow or by Poomjai
Published on 2010-03-20T16:01:21Z Indexed on 2010/03/20 16:11 UTC
Read the original article Hit count: 405

Filed under:
|
|

Belong to this article Jquery Partial View

What should i do when i want to submit the value fill from user and sent it to the ActionResult controller that return the partial view

-- View Code that call the controller (from article)

<script language="JavaScript" type="text/javascript">
   $('#centerbody').load('/Custom/CustomAction', function(html) {
       $('#centerbody')[0].value = html;  
   });
</script>

-- Controller Action with no parameter (from article)

public ActionResult CustomAction()
{
  return View("_CustomParialView");
}

Thanks for your suggestion

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about jQuery