在网页(HTML)上拥有与 Windows 表单等效的丰富表单控件的最佳机制
我正在努力将 Windows 应用程序移植到网络上。 Windows 应用程序的表单控件、复杂验证和用户交互性非常丰富。
基本的网络表单不足以满足这些复杂性。所以我想知道保持网页丰富性的最佳方法。我有一些想法,希望得到评论。
- 使用 DHTML 和用于模仿复杂控件的 Java 脚本。有一些宏控件可作为 jQueryUI 的一部分使用,还有一些其他第三方 Java 脚本控件。如果有推荐的控件库,我希望得到建议。
- 在需要丰富控件的地方使用 RIA(最好是 Silverlight)。我想将此保留为最后一个选项,因为它要求使用 Silverlight 插件。
其他流行/首选策略是什么?
I am working towards porting a windows application to web. The windows application is quite rich w.r.t. the form controls, complex validations and user interactivity.
Basic web forms are inadequate to meet these complexities. So I would like to know the best way to still have the richness on the web pages. I have some ideas and would like comments.
- Use DHTML & Java Script to mimic complex controls. There are some macro controls available as part of jQueryUI that can be used and some other third party Java Script controls. I'd like suggestions if there is a recommended control library.
- Use RIA (preferably Silverlight) wherever rich controls are needed. I'd like to keep this as a last option because it mandates the Silverlight plug-in.
What are other popular / preferred strategies?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您不介意偏离 .NET“控件”,我会尝试 Ext JS。它具有 GPL/商业双重许可,因此您可能需要付费,但其组件比 Telerik 或其他 .NET 版本更强大。
If you don't mind a departure from .NET "controls", I'd try Ext JS. It is dual licensed GPL/Commercial so you'll likely have to pay for it, but the components are more robust than Telerik or the other .NET versions.
我建议您还查看 DevExpress (http://www.devexpress.com) 中的工具。我曾经使用过 Telerik 和 DevExpress,但最终只使用了 DevExpress 工具。然而,这两家公司都是一流的,并且都拥有可以真正增强用户界面的工具。
话虽如此,我强烈建议您避免将胖客户端 UI 移植到 Web 的诱惑。也就是说,如果您只是寻找 Web 控件来取代当前的 Windows 控件,但保持 UI 完好无损,那么您可能会失望。网络是一种不同的动物,人们期望以不同的方式使用它。借助 Ajax、JQuery 以及 DevExpress 或 Telerik 等公司提供的各种专业工具,您可以在 Web 上做一些令人惊奇的事情,这些事情与您在当前的胖客户端界面中所做的任何事情都是相同的,但它们的完成方式会有所不同。
这个建议的原因是什么?首先,根据我的经验,Windows UI 迁移到 Web 感觉笨拙且不合适。控件并不是唯一发生变化的东西 - 整个窗口和内容流模型都不同。
其次,如果您要部署到自己以外的组织,您可能会发现使用任何类型的插件(包括 Silverlight)都存在明显阻力。我们一直赢得业务,因为我们一直保持纯粹的网络。
第三,如果您尝试构建 Web 应用程序而不真正学习 Web 开发道德和方法,您只会放慢您最终成为真正的 Web 开发专家的速度。
无论如何——那是我的 0.02 美元。
I would suggest that you also check out the tools from DevExpress (http://www.devexpress.com). I've used both Telerik and DevExpress and ended up going with just the DevExpress tools. Both companies, however, are top-notch and both have tools that can really enhance your UI.
With that being said, I would strongly suggest that you avoid the temptation to just port your fat client UI to the Web. That is, if you are just looking for web controls to take the place of your current Windows controls but otherwise leave the UI intact, you are likely to be disappointed. The web is a different kind of animal and people expect to use it differently. With Ajax, JQuery and the various specialty tools from a company like DevExpress or Telerik you can do amazing things on the web that are the equal of anything you may have done in your current fat client interface but they will be done differently.
Reasons for this advice? First, in my experience Windows UIs migrated to the web feel clumsy and inappropriate. The controls aren't the only thing that changes - the entire windowing and content flow models are different.
Second, if you are deploying to organizations outside of your own, you are likely to find that there is significant resistance to using any kind of plug-in - including Silverlight. We win business all the time because we've stayed pure web.
Third, to the extent that you try to build web apps while not really learning web development ethics and methods, you'll just slow down your eventual evolution to true web development experts.
Anyway - that's my $0.02.
我们在 ASP.NET 的 Telerik 控件方面取得了很大的成功。
http://www.telerik.com/products/aspnet-ajax.aspx
他们还有一套 Silverlight 控件。
http://www.telerik.com/products/silverlight.aspx
对于 ASP .NET MVC。
http://www.telerik.com/products/aspnet-mvc.aspx
它们非常易于使用且功能丰富。他们网站上的演示应该能让您很好地感受到这些功能。
We have had a lot of success with the Telerik controls for ASP.NET.
http://www.telerik.com/products/aspnet-ajax.aspx
They also have a suite of Silverlight controls.
http://www.telerik.com/products/silverlight.aspx
And for ASP.NET MVC.
http://www.telerik.com/products/aspnet-mvc.aspx
They are very easy to use and richly featured. The demos on their site should give you a good feel for the capabilities.
有一篇关于 Codeproject 的文章,其中介绍了将 Winforms 转换为 ASP.NET
希望这个有帮助。
There was an article on Codeproject which covered converting Winforms to ASP.NET
Hope this helps.