Silverlight 业务应用程序

发布于 2024-11-07 01:05:42 字数 216 浏览 0 评论 0 原文

我对 Silverlight 业务应用程序感兴趣,想知道它是否有用?我想知道是否可以单独使用 Silverlight 来完成我的所有网站?

我不想使用 JavaScript、ASP.NET 的网格、其他控件、HTML、jQuery 或 Ajax。我只想建立一个像网上银行系统或电子商务网站这样的网站,只使用Silverlight 可以吗? 我想知道安全和速度问题?

非常感谢所有评论!

I'm interested in Silverlight Business Applications, and I was wondering if it is useful? I wonder if it is possible to do all my site with Silverlight alone?

I don't want to use JavaScript, ASP.NET's grids, other controls, HTML, jQuery or Ajax. I only want to build a site like online Banking System or e-commerce site only using Silverlight Is it possible?
And I wonder about security and speed concerns?

All comments are much appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

不交电费瞎发啥光 2024-11-14 01:05:42

我们尝试将我们的网站切换到 Silverlight。作为开发人员,这对我们来说更容易。因为您只需处理 XAML,并且无论您使用什么浏览器,它总是以相同的方式呈现。我们没有更改旧页面,而是开始仅在 Silverlight 中制作新页面。大约一年后,用户开始抱怨 Silverlight 的体验。

用户抱怨的一些问题:

  • 复制/粘贴 - 您无法选择 Silverlight 控件并将其内容复制到记事本/电子邮件等。
  • 并非所有浏览器都支持 Silverlight。有些用户喜欢在手机上使用我们的网站。但 Silverlight 并不适合它们。
  • 如果您渲染具有较大高度和大量数据的页面,Silverlight 可能会相当慢。为了使其更快,我们在 Silverlight 控件内使用了 ScrollBar。它解决了性能问题,但由于滚动条太多而降低了用户体验。

最后我们将这些页面切换到 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:

  • Copy/paste - you can't select Silverlight controls and copy their contents to notepad/email whatever.
  • Silverlight is not supported by all browsers. Some users like using our web site on their cell phones. But Silverlight didn't work for them.
  • Silverlight can be fairly slow if you render a page with a big Height and lots of data. To make it faster we used ScrollBars inside of Silverlight controls. It solved performance issues, but degraded user experience because of too many scroll bars.

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.

滴情不沾 2024-11-14 01:05:42

当然,只使用 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.

千柳 2024-11-14 01:05:42

对于银行系统来说,它可能对电子商务有用,但不会因为站点索引限制而有用。另一件需要考虑的事情是有多少访客将安装 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文