Skip to main content
Home Forums Silverlight Programming Programming with JavaScript Silverlight 3 control in a Sharepoint Webpart does not display
4 replies. Latest Post by spmoran on October 28, 2009.
(0)
heltersk...
Member
0 points
3 Posts
09-23-2009 6:27 PM |
I have coded a simple web part and have added a simple silverlight 3 control to it using LiteralControl. The code is from Karine Bosch's blog (http://karinebosch.wordpress.com/2009/07/17/integrating-silverlight-3-in-sharepoint-2007/). The code is as is from this blog but I cannot see my silverlight control on the webpart. The mime types are fine. The silverlight control works fine when I open it in a test page. When I try and access the xap file through the browser, I get the option to download it, so it is finding the xap file. The javascript on the page shows no errors. Any ideas anyone?
09-24-2009 12:57 PM |
Also, the sharepoint log shows no errors.
09-24-2009 3:12 PM |
for anyone else who runs into this issue.. height and width... make sure you set the height and width of your div tag to be exactly that of your user control. Cannot believe I spent this much time over some thing this small.
sfbarron
2 points
1 Posts
10-07-2009 12:53 PM |
Thanks for posting this. I had this same issue and it took me almost 2 days to figure out why. Possibly longer if I didn't come across this thread. I'm not sure if it's the object tag or the Silverlight plugin itself being so picky.
spmoran
10-28-2009 9:52 AM |
Make sure both js files are in the _layouts subfolder you created. That's what worked for me.