Silverlight best practice

Posted on 2009-12-30
Last Modified: 2013-11-12
I am using Silverlight3

Can anyone tell me what is the best practice to use silverlight, i mean i should take only silverlight project and will host its object in html page or i should use website to host silverlight in .aspx page then i can use server site too.Please tell me what is the best practice?

Question by:farjack1
    LVL 5

    Accepted Solution

    This depends largely on what the web server supports that you'll be putting your Silverlight app on.

    If the web server supports ASP.NET then you should create a Silverlight app with ASP.NET support.  Having ASP.NET host the silverlight app adds a lot of functionality that isn't included with HTML.  But ASP.NET is not supported by all web servers.

    If you don't know what your web server supports you should host the Silverlight app in HTML.  When Silverlight is hosted in HTML it is more or less guaranteed to work on any web server you put your website and Silverlight app on.

    It's a functionality (use ASP.NET) versus compatibility (use HTML) issue.

    Author Comment

    i have IIS server so that means i should host silverlight on page, then question appear if i use to host my silverlight and i use mix functionality i mean some server site controls and some silverlight objects in one page so how we will communicate server site controls and silverlight objects i mean how we can pass silverlight data to server site control if you can give me any code example or suggest any tutorial that will very useful.


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now