Solved

Silverlight embed

Posted on 2010-08-26
1
409 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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