0

我已经安装了其中包含 MVC 的 Visual Studio 2010 速成版。我正在创建我的第一个应用程序,我注意到我可以在其中包含基本的 asp.net 控件,如 [label、gridview、datagrid、drop downbox]。以及与视图上显示的这些控件相关的所有事件。

我的问题是:

在 MVC 中使用 asp.net 控件好还是我应该在 HTML 部分和 JQuery 上练习更多?它会损害页面速度吗?

4

1 回答 1

0

I don't think it's a good idea.

MVC embodies the idea of giving you full control at the client-side and at the server-side. While ASP.NET server side controls were there to mimic the desktop-based development which most developers were used to. They are easy to use but are less flexible and some issues (like ViewState) could really hard to solve.

IMO I think you should only go for ASP.NET controls if you are bounded by some legacy code

于 2011-04-19T13:52:34.200 回答