Silverlight 业务应用程序
我对 Silverlight 业务应用程序感兴趣,想知道它是否有用?我想知道是否可以单独使用 Silverlight 来完成我的所有网站?
我不想使用 JavaScript、ASP.NET 的网格、其他控件、HTML、jQuery 或 Ajax。我只想建立一个像网上银行系统或电子商务网站这样的网站,只使用Silverlight 可以吗? 我想知道安全和速度问题?
非常感谢所有评论!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我们尝试将我们的网站切换到 Silverlight。作为开发人员,这对我们来说更容易。因为您只需处理 XAML,并且无论您使用什么浏览器,它总是以相同的方式呈现。我们没有更改旧页面,而是开始仅在 Silverlight 中制作新页面。大约一年后,用户开始抱怨 Silverlight 的体验。
用户抱怨的一些问题:
最后我们将这些页面切换到 asp.net/mvc (html/javascript)。
我们决定仅当页面上需要大量复杂的用户交互或显示酷炫的跳跃仪表板小工具和图表时才使用 Silverlight 页面。
因此,虽然我是 Silverlight 的粉丝,但我不建议只为拥有广泛受众的网站使用 Silverlight。
We tried to switch our web sites to Silverlight. It was easier for us as developers. As you have to deal with XAML only and it always renders the same way despite the browser you use. We didn't change old pages, but started making new pages in Silverlight only. After a year or so, users started complaining about Silverlight experience.
Some problems that users were complaining about:
Well in the end we switched those pages to asp.net/mvc (html/javascript).
We decided to use Silverlight pages only when a lot of complicated user interactivity is required on a page or in such cases as showing cool jumping dashboard gadgets and graphs.
So, although I am a fan of Silverlight, I would not recommend to have Silverlight only for a web site with a broad audience.
当然,只使用 Silverlight 是可能的,但您会错过 HTML、CSS 和 JS 的优势。
我不会推荐这个。
您仍然需要某种服务器端代码。像Web Service一样处理数据。
辅助功能
有很多工具可供盲人用户解读 HTML。 SilverLight 不存在这些。
重新发明轮子
HTML 中有很多标记和内置控件。 CSS 内置了很多页面布局和 UI 操作。
Silver Light 默认情况下不提供替代方案,因为它旨在与 HTML / CSS 一起使用
移动支持
使用 HTML/CSS 的移动支持比使用 Silver Light 更容易。
JavaScript 库
有很多 JavaScript 库可以完成某些任务。 Silver Light 没有那么多可以依赖的库和第三方代码。
跨平台
有Moon Light,它是白银的开源替代品light,允许您在 Mac 和 Linux 上运行 silver light 应用程序。
它不隶属于 Microsoft,因此功能不丰富或稳定。更重要的是,它没有像标准 Microsoft 工具那样附带任何类型的支持包。
Sure it's possible to only use Silverlight but your going to miss the advantages of HTML, CSS and JS.
I would not recommend this.
You'll still need some kind of server side code. Like a Web Service to deal with data.
Accessibility
There are plenty of tools for blind users to interpret HTML. These do not exist for SilverLight.
Reinventing the wheel
HTML has a lot of mark up and controls build into it. CSS has a lot of page layout and UI manipulation build into it.
Silver Light does not provide alternatives by default because it's meant to be used with HTML / CSS
Mobile support
Mobile support is simply easier with HTML/CSS then it is with Silver Light.
JavaScript Libraries
There are a lot of JavaScript libraries out there to accomplish certain tasks. Silver Light just does not have anywhere near as many libraries and third party code you can rely on.
Cross Platform
There is Moon Light which is the open source alternative to silver light that allows you to run silver light applications on Mac and Linux.
This is not affiliated with Micro Soft and is therefore not as feature rich or stable. More importantly it does not come with any kind of support package like standard Microsoft tools.
对于银行系统来说,它可能对电子商务有用,但不会因为站点索引限制而有用。另一件需要考虑的事情是有多少访客将安装 silverlight。
您将需要一些后端服务来为您的应用程序提供数据。
然而,silverlight 也有一些优点,例如它具有 .net 的强大功能,这意味着您可以使用linq 以及其他用于分页查询和过滤的功能,您还可以在适用于 Windows Phone 的 ASP.net SL 或适用于 Windows 的 WPF 中充分利用您的代码库。 Silverlight 还具有独立存储、pivot-viewers,
For banking system it might be usefull for e-commerce it wouldn't be due to site indexing limitations. Another thing to consider is how many of your visitors will have silverlight installed.
You will need some back-end service to provide data for your application.
However silverlight has some advanteges aswell for example it has the power of .net which means you could use linq and what not for paging querying and filtering and also you could the most of the your code base across ASP.net SL for Windows Phone or WPF for windows. Silverlight also has isolated strorage, pivot-viewers, data grids, paging and what not. Overall has good business oriented features, and if you had your hearth set on using silverlight or flash I would recommend flash, but they are not that suitable for making a whole website without any html. Good luck.