1 <%@ page language="C#" %>
4 <script type="text/javascript" src="Silverlight.js"></script>
5 <script lang="text/javascript">
6 function createSilverlight()
8 Silverlight.createObjectEx({
9 source: "<%= Request ["xaml"] %>",
10 parentElement: document.getElementById("SilverlightControlHost"),
11 id: "SilverlightControl",
16 enableHtmlAccess: "true"
21 // Give the keyboard focus to the Silverlight control by default
22 document.body.onload = function() {
23 var silverlightControl = document.getElementById('SilverlightControl');
24 if (silverlightControl)
25 silverlightControl.focus();
30 <style type="text/css">
37 <div id="SilverlightControlHost" class="silverlightHost" >
38 <script type="text/javascript">