使用与ASP.NET,Web表单或MVC ExtJS的? [英] Using ExtJS with ASP.NET, Webforms or MVC?

查看:135
本文介绍了使用与ASP.NET,Web表单或MVC ExtJS的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关使用所有0 ASP.NET控件,而是一个100%的ExtJS接口的情况下,这将是使用ASP.NET MVC或ASP.NET WebForms的优势?和缺点是什么?有没有明显的方式做正确?

For a scenario using 0 ASP.NET controls at all but rather an 100% extJS interface, what would be the advantages of using ASP.NET MVC or ASP.NET WebForms? And the disadvantages? Is there a OBVIOUS way to do it properly?

我很想有反馈对您的经验。

I would love to have feedback's on your experiences.

感谢您!

推荐答案

的WebForms +任何纯客户端框架会给你什么,但无尽的麻烦,如果你能得到它的所有工作。有些我已经在过去的问题(从我的头顶,它已经有一段时间):

WebForms + any purely client-side framework will give you nothing but endless headaches, if you can get it working at all. Some of the issues I've had in the past (off the top of my head, it's been a while):


  • 的WebForms限制你到一个<形式为GT;每页标记。虽然这并不一定是prevent使用分机或类似的东西,这是严重(和任意)在许多情况下限制

  • 的WebForms是建立在回发和视图状态。假如你不使用这些功能(因为你没有服务器控件),你会对抗的方式的WebForms要工作。你可以这样做,但事情真的迅速打开哈克。

  • 的WebForms有一整页的生命周期和服务器端事件的框架。同样,因为你不会使用任何的是,什么是采摘的WebForms?

  • 您应该坚信讨厌的网址,除非你想真正与IIS战斗。

  • WebForms limits you to a single <form> tag per page. While this does not necessarily prevent use of Ext or something like it, it is severely (and arbitrarily) limiting in many cases
  • WebForms is built around postbacks and viewstate. Assuming that you aren't using those features (since you have no server controls) you'll be fighting against the way WebForms wants to work. You can do this, but things really quickly turn hacky.
  • WebForms has an entire page lifecycle and server-side event framework. Again, since you won't be using any of that, what's the point in picking WebForms?
  • You're stuck with nasty urls unless you want to really fight with IIS.

ASP.Net MVC是一个更好的选择,如果你仍然想盘点一下.NET可以在服务器端提供不就是WebForms的苦难优势。也有几个不同的Ext.Direct提供商MVC中的分机可用的论坛,如果你搜索。祝你好运找到什么都来帮助你的WebForms整合EXT(没什么)。

ASP.Net MVC is a much better alternative if you still want to take advantage of what .NET can offer on the server side without the misery that is WebForms. There are also several different Ext.Direct providers for MVC available in the Ext forums if you search. Good luck finding anything out there to help you integrate Ext with WebForms (there is nothing).

修改:我一直在使用的为ASP.NET MVC的Ext.Direct堆栈以优异的成绩一会儿这个实施

这篇关于使用与ASP.NET,Web表单或MVC ExtJS的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆