如何使用@ Url.Action中的参数调用控制器操作。实际上传递给动作的参数是ModelName Model public ActionResult Step1(NewCard model) [英] How do I call a controller action with parameters from @Url.Action. Actuallly the parameter passed to the action is ModelName Model public ActionResult Step1(NewCard model)
本文介绍了如何使用@ Url.Action中的参数调用控制器操作。实际上传递给动作的参数是ModelName Model public ActionResult Step1(NewCard model)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我正在验证Asp.Net MVC中的html页面中的fiedls
控制器操作是指它采取的模型变量/输入字段来自。
公共ActionResult EStep(OneCard模型)
当我调用此动作时从我的视角使用@ Url.Action(EStep,controllername)
它显示错误...
请帮助。
Hi I am validating the fiedls in html page in Asp.Net MVC
Controller Action refers to the Model it is taking the varibles/input fields from.
public ActionResult EStep(OneCard model)
When I call this action from my view using @Url.Action("EStep","controllername")
it shows an error...
Please help.
推荐答案
这篇关于如何使用@ Url.Action中的参数调用控制器操作。实际上传递给动作的参数是ModelName Model public ActionResult Step1(NewCard model)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文