【发布时间】:2009-01-08 08:35:19
【问题描述】:
我希望使用我直接在动作方法参数上制作的模型绑定器。如:
public ActionResult MyAction([ModelBinder(typeof(MyBinder))] string param1)
但是,我需要将一个字符串传递给活页夹本身,所以我想知道您是否可以按照以下方式做一些事情:
public ActionResult MyAction([MyBinder("mystring")] string param1)
有可能吗?
【问题讨论】:
标签: asp.net asp.net-mvc