简体   繁体   English

将在 MVC 和 Web Forms 中工作的自定义 Asp.net 服务器控件?

[英]Custom Asp.net server controls that will work in MVC and Web Forms?

Is it possible to develop controls that will work in both Asp.net Web Forms and MVC?是否可以开发适用于 Asp.net Web Forms 和 MVC 的控件?

It seems that we're heading for a situation where we now have to maintain another set of code for MVC over and above the code being maintained for Silverlight and Web Forms and heaven knows what else.似乎我们正面临这样一种情况,即我们现在必须在为 Silverlight 和 Web Forms 维护的代码之上维护另一组 MVC 代码,天知道还有什么。

It is possible, but not pretty.这是可能的,但并不漂亮。 MVC does not have the ViewState . MVC 没有ViewState

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM