多表单提交需要写清路径,以便主程序可以找到

方法一:直接写路径,

action="~/Home/other1"   "~"表示从根目录开始

 

方法2:@using(HTML.Beginform("other","Home"))

          {}

 

方法3:超链接:@HTML.ActionLink()

type="button"  this.form.submit();

 

可以用TempData[""]=;

ViewBag和强类型数据不能跨动作

 

 

ajax的使用方法相同

 

相关文章:

  • 2021-12-15
  • 2022-01-03
  • 2021-10-26
  • 2021-09-11
  • 2022-12-23
  • 2021-12-24
  • 2021-11-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-12
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
相关资源
相似解决方案