Web应用程序与Silverlight应用程序 [英] Web application vs Silverlight application

查看:91
本文介绍了Web应用程序与Silverlight应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我是一个一岁的.net windows应用程序开发人员。

我要开始一个小规模的项目作为一个浏览器视图应用程序。

包括简单的数据库,报告和所有... ...



我的实际计划是在SILVERLIGHT中开发4(因为Silverlight 5应用程序仅在IE上作为默认浏览器运行)。



因此,我需要知道哪个平台更适合开发..Silverlight或Web应用程序原因如下..



1.Hosting问题

2.浏览器兼容性

3.操作系统兼容性



先谢谢...

解决方案

我开发了很多Silverlight,可以公平地评论这个问题好吧。



首先,Silverlight 5插件的浏览器支持不低于以前的版本,请参阅此链接



绝不是你更喜欢Silverlight 4而不是Silverlight 5,版本4不是支持更长时间,你将无法使用Expression Blend for Visual Studio。



首先,我回答你自己的观点:



1.托管:运行服务器并不严格地说对Silverlight插件很重要,但实际上,当您使用Windows Server(或Windows Azure)和IIS时,您会获得许多优势(或者Azure网站)。显而易见的优点是,既然您仍将使用Visual Studio,只需单击发布即可发布新版本 - 如果设置正确的话。例如,对于Azure网站来说,这一点特别容易。



此外,您可能希望在服务器上使用与C#相关的技术,以便从客户端和服务器的协同作用中受益技术是相同的(或类似的)。



如果没有Silverlight,重要的是你使用的服务器技术。



2.浏览器兼容性:这在很大程度上是html应用程序的一个问题,因为插件在所有浏览器中的行为大致相同。我自己使用Chrome,而我的客户通常使用Internet Explorer,一些Firefox。在过去几年中,由于浏览器不兼容,我没有遇到任何问题 - 而且我知道Web开发人员过去常常与这些问题作斗争。这可能是主要优势之一,*如果* Silverlight在平台上运行,它的运行方式与其他所有平板运行相同。



有一个微妙但不太好知道警告(bug),但它不依赖于浏览器。平板电脑设备上可能存在某种内存泄漏,请参阅此stackoverflow应答。这是我唯一一次经历Silverlight应用程序依赖于环境因素。



3.操作系统兼容性:显然,你将使用Silverlight运行Windows 。有一个mac实现,但你应该提前测试,因为在许多情况下,Silverlight可能实际上* *行为不同。我不能说实施的严重程度如何。



更令人失望的是微软在他们自己的平台上的政策:WinRT平板电脑(非专业人士,基于ARM的one)不支持Silverlight,当然Metro-IE也不支持(臭名昭着)。



简而言之,Silverlight仍然是在您定位企业环境的情况下可行的选择,您可以在其中估算客户将拥有的硬件,以及在几乎没有技术替代方案的情况下 - 例如当您需要良好的自适应视频流技术时。



基于html的解决方案可以发挥作用的一件事是设计:虽然我喜欢Expression Blend,但大多数网页设计师似乎并不赞同我的爱。您可以找到html的html / css模板数量,即使是业务线应用程序也是如此。对于Silverlight(和WPF),几乎什么都没有。事实上,我不知道Silverlight自己没有创建过一个漂亮的Silverlight设计 - 而且它们也创造了丑陋的设计。



As喜欢Silverlight的人 - 能够为我的下一个应用程序挑选和购买一个非常漂亮的主题的能力可能是我在看html世界时最羡慕的事情,甚至比平台支持还要多。 />


今天我建议使用html作为默认值,除非以下几点之一适用:



- 你已经熟悉Silverlight(或您的团队)。

- 您需要执行超出html编辑器的复杂富文本编辑功能。

- 您需要访问COM接口或在Windows上进行P / Invoke(虽然您也可以使用Silverlight补充html)

- 您希望提供安装应用程序的能力(浏览器外)模式)。

- 你有复杂的业务逻辑想要在服务器和客户端上执行,并且你想用C#而不是Javascript编写它。



如果这些东西中的任何一个成立,Silverlight可能是一个选项(以及WPF)。


我不是进入Silverlight,而是参考 http:/ /www.microsoft.com/silverlight/ [ ^ ]

引用:

Silverlight是一款功能强大的开发工具,可为Web和移动应用程序创建引人入胜的交互式用户体验。 Silverlight是一个免费的插件,由.NET框架提供支持,与多个浏览器,设备和操作系统兼容,在Web工作的任何地方都带来了新的交互性。


我了解网络应用程序并且他们没有你提到的问题。



所以,最后结论既不是Web应用程序也不是Silverlight这些问题和Silverlight只是一个用户使用.NET Framework的插件。这不是一个不同的框架。



我建议你去探索更多。 :)


如果您的客户可以安装插件,则可以选择Silverlight。

否则,您将需要使用除silverlight之外的其他内容。

Hi everyone!

I m an one year old .net windows application developer.
I am to start a small scale project as a browser view application.
which includes simple Databases,reports and thats all...

my actual plan is to develop in SILVERLIGHT 4 (because Silverlight 5 App only run on IE as default browser ).

So, I need to know which platform is better to develop..Silverlight or Web application for the following reasons..

1.Hosting problem
2.browser compatibility
3.operating System compatibility

Thanks in Advance...

解决方案

I develop Silverlight extensively and can comment on that question fairly well.

First of all, the Silverlight 5 plugin has no less browser support than the previous version, see this link for a statement by Microsoft.

By no means should you prefer Silverlight 4 over Silverlight 5, the version 4 is no longer supported and you will not be able to use Expression Blend for Visual Studio.

First I answer you own point in question:

1. Hosting: What the server runs on is not strictly speaking important to the Silverlight plugin, but for practical means you get a number of advantages when you use Windows Server (or Windows Azure) with IIS (or Azure Web Sites). The obvious advantage is that since you will use Visual Studio anyway, you can just click "publish" to release a new version - if set up correctly. This is particularly easy with Azure Websites, for example.

Also, you probably want to use C#-related technology on the server to benefit from the synergy of client and server technology being the same (or similar).

Without Silverlight, it matters much less what server technology you use.

2. Browser compatibility: This is largely an issue for html apps, since the plugin behaves mostly the same in all browsers. I use Chrome myself and my customers usually use Internet Explorer, some Firefox. In the last few years I had not one problem due to a browser incompatibility - and I know how much web developers used to fight with those. This is probably one of the main strengths, *if* Silverlight runs on a platform, it runs the same as on all others.

There is one subtle and not well-known caveat (bug) though, but it's not depending on the browser. There is a certain kind of memory leak that can occur on tablet devices, see this stackoverflow answer. It's the only time I experienced a Silverlight application to be dependent on an environmental factor.

3. Operating system compatibility: Obviously you are going to run Windows-only with Silverlight. There is a mac implementation, but you should test early because there Silverlight might actually *do* behave differently in many cases. I can't say much to how serious that implementation actually is.

Much more disappointing is Microsoft's policy on their own platform: The WinRT tablet (the non-professional, ARM-based one) doesn't support Silverlight, and of course the metro-IE doesn't either (infamously).

In a nutshell, Silverlight is still a viable option in cases where you target a corporate environment where you can estimate the hardware your customers will have, as well as in those cases where there are few technical alternatives - such as when you need a good adaptive video streaming technology.

One thing where html-based solutions can shine is design: Although I love Expression Blend, my love doesn't seem to be shared by most web designers. The amount of html/css templates you can find for html, even for line-of-business applications, is amazing. For Silverlight (and WPF), there is almost nothing at all. In fact I don't know a single beautiful design for Silverlight that hasn't been created by Microsoft themselves - and they too have created ugly ones as well.

As someone who loves Silverlight - the ability to just pick and buy a really beautiful theme for my next app is probably the thing I'm most envious of when I'm looking at the html world, much more so even than platform support.

Today I'd suggest html as a default unless the one of the following points apply:

- You are already familiar with Silverlight (or your team is).
- You need to do complex rich-text editing capabilities that go beyond an html editor.
- You need to access COM interfaces or do P/Invoke on Windows (although you can also supplement an html with Silverlight for that)
- You want to provide the ability to "install" an application (out-of-browser mode).
- You have complex business logic that you want to execute on the server and the client alike, and you want to write that in C# rather than Javascript.

If any of these things hold, Silverlight might be an option (as well as WPF).


I am not into Silverlight, but refer- http://www.microsoft.com/silverlight/[^]

Quote:

Silverlight is a powerful development tool for creating engaging, interactive user experiences for Web and mobile applications. Silverlight is a free plug-in, powered by the .NET framework and compatible with multiple browsers, devices and operating systems, bringing a new level of interactivity wherever the Web works.


I know about Web apps and they don't have the problems you mentioned.

So, at last the conclusion is neither Web app nor Silverlight have these problems and Silverlight is just a plugin which is user with .NET Framework. That is not a different Framework.

I would suggest you to explore more on these. :)


If your clients are ok installing a plugin, silverlight is an option.
Otherwise, you will want to use something other than silverlight.


这篇关于Web应用程序与Silverlight应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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