【问题标题】:Can I have an MVC Action as a ServiceMethod for an AutoCompleteExtender?我可以将 MVC 操作作为 AutoCompleteExtender 的 ServiceMethod 吗?
【发布时间】:2009-04-23 04:26:42
【问题描述】:

假设 Tools 是我的控制器,我在 ServicePath 中指定“/Tools”,在 ServiceMethod 中指定操作名称“GetToolsList”。我可以用这种方式触发 AutoCompleteExtender 吗?我怎样才能在这里将 prefixText 传递给 Action?还是不可能?

【问题讨论】:

    标签: asp.net-mvc autocompleteextender


    【解决方案1】:

    做到了。创建了一个返回 void 的操作,并对输出进行 JSON 序列化并将其写入响应对象,以便读取并显示在 AutoCompleteExtender 中。

    【讨论】:

      猜你喜欢
      • 2016-02-06
      • 1970-01-01
      • 1970-01-01
      • 2020-11-06
      • 1970-01-01
      • 2020-05-11
      • 2014-09-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多