如何嵌入剃刀EditorFor View
我有一个可组合的 Web 应用程序,用户在其中输入商品编号,然后调用多个处理器之一来根据商品类型处理操作。每个“处理器”都位于单独的 .dll 中,可以放入应用程序中并由 IOC 容器拾取以允许扩展站点。
处理器有时需要请求反馈,因此传递与 Html.EditorFor 一起使用的对象以从用户收集额外信息。
我的问题是是否有办法将 EditorFor 模板嵌入到单独的 .dll 中并在 Web 应用程序中获取它?理想情况下,处理器能够指定自己的 EditorFor 模板,这样他们就不会只使用基本的 EditorFor 模板,因为它相当缺乏。
I have a composable web application where the user enters an item number and one of a number of processors is invoked to handle the action based on what type of item it is. Each "processor" is in a seperate .dll and can be dropped into the application and picked up by the IOC container to allow the site to be extended.
The processors sometimes need to ask for feedback and so pass up an object that is used along with an Html.EditorFor to collect extra information from the user.
My question is whether or not there is a way to embed an EditorFor template in a seperate .dll and have it get picked up in the web application? Ideally the processor would be able to specify its own EditorFor template so that they don't just use the basic EditorFor template as it is rather lacking.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论