Solved

Silverlight embed

Posted on 2010-08-26
1
415 Views
Last Modified: 2013-11-12
I have a Silverlight project in my solution. How do I add it to an aspx page in my Website?
0
Comment
Question by:johnkainn
1 Comment
 
LVL 3

Accepted Solution

by:
with earned 250 total points
ID: 33538780
You embed the .xap file using an object tag. Here's an article about it, it shows all the extra param tags you can use as well
http://developer.yahoo.com/dotnet/silverlight/embeddingobject.html

If this is all in 1 Solution, you can set up automatic .xap building by going into the Silverlight Applications tab of the Web Project's properties page (see pics).

You can learn a good example of exactly how to embed the .xap into your own page by examining what the generated test page does, and just throw it away after you understand.  If you need the Silverlight.js file, you can get the latest one here:

http://code.msdn.microsoft.com/silverlightjs
Capture.JPG
Capture2.JPG
Capture3.JPG
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access Query (QBE) Using VBA Function for Criteria 13 67
Need example 5 129
Need to create an object factory 2 49
Why use this lambda? 12 62
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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