Using Silverlight for an entire website?

后端 未结 12 1657
渐次进展
渐次进展 2021-02-06 01:52

We need to build an administration portal website to support our client/server application. Since we\'re a .Net shop the obvious traditional way would be to do that in ASP.Net.

相关标签:
12条回答
  • 2021-02-06 02:18

    Silverlight is a good choice for an internal-facing portal, just as it would be for a public-facing portal if you've already evaluated your project and have decided to go forward with a web portal. You are free to integrate Silverlight components within an existing ASP.NET application (i.e. the "islands of richness") approach, but if you have the ability to build a new project from scratch, don't discount a completely Silverlight solution as a valid choice where you would have went with a traditional ASP.NET portal. Silverlight is RTW now, so if this decision is still on the table, you know you won't have to deal with breaking changes going forward.

    0 讨论(0)
  • 2021-02-06 02:20

    I would recommend against building a pure Silverlight site.

    Silverlight suffers from the same issues as Flash does: Unintuitive Bookmarking, issues with printing, accessibility issues, not working back buttons and so on.

    Also, you would require your users to have Silverlight installed or at least to have the ability to install it.

    In controlled environements (eg. in large companies or health care) or on mobile devices, this might not be the case.

    0 讨论(0)
  • 2021-02-06 02:20

    On the topic of remote andministrators, another poster stated that was an argument in favor of HTML if the admins were on a slow connection. I would argue that depending on the type of information, it may be more efficient to use Silverlight. If you have an ASP.NET datagrid populated with server side data binding, you can be downloading a ton of markup and viewstate data. Even if you're using an alrternative to DataGrid that's lighter on the ViewState, you will still have a lot of HTML to download.

    In Silverlight, once you get the XAP down, which is probably going to be smaller than the corresponding HTML, the XAP is cached and so you shouldn't have that cost every time, and you'll just be retrieving the data itself.

    For another example, let's say you have a bunch of dropdown lists on one of your forms which all have the same values in the list. In Silverlight, you can get these values once and bind them to all of the dorpdowns, in HTML you will have to repeat them each time.

    This will get better with client side data binding in ASP.NET, which follows a very similar model to Silverlight and WPF for data binding.

    Overall, I would also think that you would need to write less code for the Silverlight implementation which can increase productivity and reduce maintenace costs.

    0 讨论(0)
  • 2021-02-06 02:23

    Depends on your goals. If administration portal is part of application and will only be used from computers where your application is installed, there are plenty of advantages of going fully Silverlight - or even WPF.

    But if you can see a scenario where it will be used either from random PC or by random person, fully functional HTML/Javascript version is absolutely necessary.

    Some reasons are:

    • Most people don't have silverlight and you'll earn a good load of swearing if they have to download and install it. Some people who have it installed keep it disabled (together with flash and sometimes even images) to avoid distractions and speed up browsing.
    • When HTML site fails, user gets error page and reloads. When silverlight fails, it can hang or crash.
    • HTML is what is expected - both by users and web browsers: back and refresh buttons work as they should, hyperlinks and forms work as expected.
    • Slow internet is still very common, both in remote areas and mobile devices.
    0 讨论(0)
  • 2021-02-06 02:25

    Using a plugin for your website makes it slow, and requires the user to have the plugin installed. Silverlight for instance rules out all Linux user. Also, since Silverlight is pretty new, there is no telling how committed Microsoft will be to keep the platform alive if it doesn't pick up soon.

    I'd stick to plain old HTML with server side scripting.

    Also, for public websites: Flash and Silverlight can't be indexed by any search engine, so good luck with writing tons of metadata if you want any visitors at all.

    0 讨论(0)
  • 2021-02-06 02:32

    I would definitely go for a full Silverlight application, specially if you have good experience from WPF. You will be able to reuse your knowledge from WPF, and should be able to pick up Silverlight fairly quickly. I've been working with Silverlight since Beta 1, and the current Beta 2 is of solid quality. I guess it's safe to assume that a RTW version is just around the corner.

    Pilf has some valid point, specially around printing. For that I would probably use SQL Reporting Services, or some other reporting framework, on the server side, and then pop up a new window with printable reports. For linking and bookmarking the issues are no different than any other AJAX application. I did a blog post today about how to provide deep linking and back-forward navigation in Silverlight.

    Silverlight also has all the hooks needed for great accessibility support, as the UI Automation API from WPF is brought into Silverlight. I don't know if the screen reader vendors have caught up yet. The styling/template support in Silverlight makes it easy to provide high-contrast skins for visual impaired users if that is a concern.

    0 讨论(0)
提交回复
热议问题