2011-06-10 69 views
-1

我有一个程序集并希望在此程序集中使用Web Interface。你将如何实现这一点? IHttpHandler是一种方式,但它非常讨厌将html输出写入Response。 有没有更优雅的方式?Howto在组件中实现Web接口

回答

0

你的意思是像embedding views into an assembly

+0

听起来很有趣,但这不适用于Asp.NET WebForms应用程序,对不对?如果我选择这种方法,它如何在没有控制器的情况下工作? – dknaack 2011-06-10 08:55:39

+0

@dknaack,你也可以在这里看看[MVCContrib Portable areas](http://lostechies.com/erichexter/2009/11/01/asp-net-mvc-portable-areas-via-mvccontrib/)案件。 – 2011-06-10 09:00:08