asp.net MVC 中的 asp.net 控件
我已经安装了 Visual Studio 2010 Express 版本,其中包含 MVC。我正在创建我的第一个应用程序,我注意到我可以在其中包含基本的 ASP.NET 控件,例如 [label、gridview、datagrid、drop downbox]。以及与这些控件相关的所有事件都显示在视图上。
我的问题是:
在MVC中使用asp.net控件好还是应该多练习HTML部分和JQuery?会损害页面速度吗?
I have installed Visual Studio 2010 express edition which has MVC in it. I am creating my first application and I noticed that I can include basic asp.net controls like [label, gridview, datagrid, drop downbox] in it. and all event related to these controls displayed on the view.
My question is:
Is it good to use asp.net controls in MVC or should I practice more on HTML part and JQuery? Would it harm page speed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这不是一个好主意。
MVC 体现了让您完全控制客户端和服务器端的理念。虽然 ASP.NET 服务器端控件是为了模仿大多数开发人员习惯的基于桌面的开发。它们易于使用,但灵活性较差,并且某些问题(例如 ViewState)确实很难解决。
IMO 我认为如果您受到某些遗留代码的限制,您应该只使用 ASP.NET 控件
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