本文介绍了如何从MVC 4中的控制器重定向部分视图页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 Pratialview页面无法重定向 我尝试过: [HttpPost] public ActionResult CallAddress() { ISIModel objModel = new ISIModel(); int intABcode = 3164; string strReferenceCode = null; objModel.objAddressModel = new AddressBook.Address(); objModel.objAddressModel .objDllColl = objModel.objAddressModel.GetAddressintABcode,strReferenceCode); //这个函数是从Dll调用的。 返回PartialView(_ AddressBook,objModel); } < script> function msg() { var urlsearch =@ Url.Content(〜/ Intimation / CallAddress); $ .ajax({ type :POST,url:urlsearch, }); } < / script>Pratialview page couldn't redirectWhat I have tried:[HttpPost] public ActionResult CallAddress() { ISIModel objModel = new ISIModel(); int intABcode = 3164; string strReferenceCode = null; objModel.objAddressModel = new AddressBook.Address(); objModel.objAddressModel.objDllColl = objModel.objAddressModel.GetAddressintABcode, strReferenceCode); //This function is called from Dll. return PartialView("_AddressBook", objModel); }<script> function msg() { var urlsearch = "@Url.Content("~/Intimation/CallAddress")"; $.ajax({ type: "POST", url: urlsearch, }); }</script>推荐答案 这篇关于如何从MVC 4中的控制器重定向部分视图页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-14 09:40