This is in response to an earlier thread with the same title that can be found here:
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/210701/scope/posts/threadpage/1/Default.aspx
I was scratching my head for sometime to get my SL2 xap to work with DNN. The SL app simple did not show up on a DNN page.
The above thread suggested using the <asp:Silverlight> control as the only way to use SL 2 with DNN. And when I did it, voila, my SL app was there.
However, the second-last post on that thread (when I last saw it!!!) mentioned that <asp:Silverlight> control works only with absolute sizing (in pixels), NOT with relative ones (in percentage). That stumped me again. I had devoted considerable efforts to make my SL respond to sizing.
And then I tried something (I still cant see why others haven't tried it). I used absolute sizing with the <object> tag containing my silverlight app. And voia again, the app was there fine. I have done it with .NET 3.5 (WITHOUT using <asp:Silverlight> control at all). Can anyone confirm this approach also works on .NET 2.0. It should. I just did not have the time to test.
And to DNN core team, can you figure out why the SL app in object tag works with absolute sizing, NOT with relative one, when relative sizing works fine on a normal HTML page.