简体   繁体   English

Silverlight 还是 Asp.net?

[英]Silverlight or Asp.net?

My company is about to creat a new website to replace the current one.我的公司即将创建一个新网站来替换当前的网站。 We hope the new website could be more attractive than current one, which means animation, flash, etc. And, in order to let non-technical staff update web content, we are also looking for a solution(like content management system).我们希望新网站能比现在的网站更有吸引力,比如animation、flash等。另外,为了让非技术人员更新web内容,我们也在寻找类似的解决方案。 I'm an experienced .net programmer, also a big fan of jQuery.我是一位经验丰富的 .net 程序员,也是 jQuery 的忠实粉丝。 My prior projects are full of Ajax using jQuery.我之前的项目充满了使用 jQuery 的 Ajax。 I have to make a decision, what platform is going to be used in new website development.我必须做出决定,在新网站开发中将使用什么平台。 Silverlight or.Net? Silverlight 还是.Net? I don't know how to use silverlight, but if have to, I'll learn.我不知道如何使用silverlight,但如果必须,我会学习。 And another concerning is, how to let non-technical staff update web content.另一个令人担忧的是,如何让非技术人员更新 web 内容。 Does anyone know if silverlight provides such a function that just like that of content management system?有谁知道 silverlight 是否提供像内容管理系统一样的 function? Any tip will be appreciated!任何提示将不胜感激!

Use Silverlight if you want to make a more desktop-like app.如果您想制作更像桌面的应用程序,请使用 Silverlight。 It would be an alternative to Flash.这将是 Flash 的替代品。 Do note that Silverlight penetration rates are lower than Flash.请注意,Silverlight 渗透率低于 Flash。

I haven't heard of any Silverlight based CMS but I haven't actively looked for one either.我还没有听说过任何基于 Silverlight 的 CMS,但我也没有积极寻找。 I'm sure some exist, but as for how good they are, I couldn't say.我肯定有一些存在,但至于它们有多好,我不能说。

Otherwise if it resembles more traditional websites and follows web paradigms and conventions I'd go with ASP.NET MVC (3) since you're already familiar with JQuery. Otherwise if it resembles more traditional websites and follows web paradigms and conventions I'd go with ASP.NET MVC (3) since you're already familiar with JQuery.

I would recommend against Silverlight from a Search Engine Optimisation and Accessibility reason.出于搜索引擎优化和可访问性的原因,我建议不要使用 Silverlight。

Search Engine Optimisation搜索引擎优化
Google cannot read text in your Silverlight application, or follow links, which will damage your page ranks. Google 无法读取您的 Silverlight 应用程序中的文本,或点击链接,这会损害您的页面排名。

Accessibility可访问性
If users dont have Silverlight installed in their browser (mobile phones dont usually support this) then they wont be able to access the site.如果用户没有在浏览器中安装 Silverlight(手机通常不支持此功能),则他们将无法访问该站点。

I would recommend having a site built in ASP.NET with Silverlight components on the site for added animation, but without ruining the functionality我建议在 ASP.NET 中构建一个站点,在该站点上使用 Silverlight 组件添加 animation,但不会破坏功能

Although I am a huge Silverlight fan, I'd urge you not to use if for a massive CMS.虽然我是 Silverlight 的忠实粉丝,但我强烈建议您不要使用大型 CMS。 My top reason is the following:我的首要原因如下:

When you browse an HTML website typically all the files you download end up in Temporary Internet files folder - that way you don't download every single image over and over again.当您浏览 HTML 网站时,通常您下载的所有文件最终都位于 Internet 临时文件夹中 - 这样您就不会一遍又一遍地下载每个图像。 With Silverlight this is not the case.对于 Silverlight,情况并非如此。 It doesn't have access to your hard drive and is only able to store things in isolated storage (1Mb by default, can be increased on demand only).它无法访问您的硬盘驱动器,只能将东西存储在隔离存储中(默认为 1Mb,只能按需增加)。 When it comes to storing things on the hard drive, it is permitted only via direct user action.在硬盘驱动器上存储东西时,只能通过直接用户操作来允许。 You actually need to click a button to open a file stream and open it for writing and reading - otherwise you get a security exception.您实际上需要单击一个按钮来打开文件 stream 并打开它进行写入和读取 - 否则您会遇到安全异常。

If you still want to use Silverlight in the CMS, I'd use it custom controls here and there or media playback, otherwise I would not recommend it for the reasons I've outlined above.如果您仍然想在 CMS 中使用 Silverlight,我会在这里和那里使用自定义控件或媒体播放,否则我不会推荐它,因为我上面概述的原因。

As some of the answers already touched on, using Silverlight is equivalent to telling Google and Bing:正如已经提到的一些答案,使用 Silverlight 相当于告诉 Google 和 Bing:

"Please stay way and keep my content entirely out of your search index. I do not want users to find my site or content via search" “请保持距离,将我的内容完全排除在您的搜索索引之外。我不希望用户通过搜索找到我的网站或内容”

If that's OK with you, then you can more easily create a glitzy site via Silverlight.如果您同意,那么您可以通过 Silverlight 更轻松地创建一个炫目的网站。 I cannot think of many public sites that want that behavior.我想不出许多想要这种行为的公共网站。

But be aware that using SL also means giving up on mobile users too.但请注意,使用 SL 也意味着放弃移动用户。 Silverlight doesn't work in Silverlight 不工作

  • iPhone / iPad iPhone / iPad
  • Android phones and tables Android 电话和桌子
  • Windows Phone 7 (unbelievably) Windows 电话 7(难以置信)

If you want both SEO and mobile, I recommend you take @Davy8's advice and go with MVC 3 + Razor + Tools Update .如果您想要 SEO 和移动设备,我建议您采用 @Davy8 的建议和 go 与 MVC 3 + Razor + 工具更新

It's more of a question of what is the "problem" that the company is currently solving with the existing website, and what improvements can be made.更多的问题是公司目前正在用现有网站解决什么“问题”,以及可以进行哪些改进。 Once you have defined the problem, then you can come up with a solution that would best suit the problem and a technology that can effectively tackle it.一旦你定义了问题,你就可以想出一个最适合这个问题的解决方案和一种可以有效解决它的技术。

The only reason why I would use Silverlight as a web solution would be if there needs to be some sort of user interaction that is outside of what can be provided using HTML, Javascript, or any other technology. The only reason why I would use Silverlight as a web solution would be if there needs to be some sort of user interaction that is outside of what can be provided using HTML, Javascript, or any other technology. Silverlight or Flex would be a great for providing a rich user experience and interactivity within your web app. Silverlight 或 Flex 非常适合在 web 应用程序中提供丰富的用户体验和交互性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM