Can I use Silverlight 2.0 with ASP.NET 2.0?

I am working on an internal tool for interacting with a database. My prototyping is written in C # using ASP.NET 2.0 with the aim of optimizing some client side operations with javascript.

However, I was hoping to use Silverlight to simplify UI development. Do I need to upgrade the server to ASP.NET 3.5 or can I create the required web services in ASP.NET 2.0 to integrate with Silverlight client-side controls?

0


source to share


2 answers


From a server perspective, it only serves the file with the XAP extension. This way the Silverlight application is not a problem.

Where you need to take care is in the webpage that hosts the Silverlight application. It could be a simple HTML page using an object tag or JavaScript, which is fine. However, you can also use ASP.NET asp: Silverlight on the server side, in which case you will need to make sure System.Web.Silverlight.dll is deployed with your application and that has a 3.5 dependency on System.Web.Extensions.



So, if you want to be server-independent, your best bet is to avoid managing asp: Silverlight.

Another thing that might be required on the server is to configure the XAP MIME type on the / x-silverlight-app.

+2


source


Yes Sivler light can be used with asp.net 2.0 and can also be deployed to other platforms like PHP



+1


source







All Articles