PageRenderTime 59ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/Visual Studio 2008/VBSL3OOB/VBSL3OOB.Web/VBSL3OOBTestPage.aspx

#
ASP.NET | 74 lines | 67 code | 7 blank | 0 comment | 15 complexity | 69b9b0005e114bdc810db798e62099e5 MD5 | raw file
  1. <%@ Page Language="VB" AutoEventWireup="true" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5. <title>VBSL3OOB</title>
  6. <style type="text/css">
  7. html, body {
  8. height: 100%;
  9. overflow: auto;
  10. }
  11. body {
  12. padding: 0;
  13. margin: 0;
  14. }
  15. #silverlightControlHost {
  16. height: 100%;
  17. text-align:center;
  18. }
  19. </style>
  20. <script type="text/javascript" src="Silverlight.js"></script>
  21. <script type="text/javascript">
  22. function onSilverlightError(sender, args) {
  23. var appSource = "";
  24. if (sender != null && sender != 0) {
  25. appSource = sender.getHost().Source;
  26. }
  27. var errorType = args.ErrorType;
  28. var iErrorCode = args.ErrorCode;
  29. if (errorType == "ImageError" || errorType == "MediaError") {
  30. return;
  31. }
  32. var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
  33. errMsg += "Code: "+ iErrorCode + " \n";
  34. errMsg += "Category: " + errorType + " \n";
  35. errMsg += "Message: " + args.ErrorMessage + " \n";
  36. if (errorType == "ParserError") {
  37. errMsg += "File: " + args.xamlFile + " \n";
  38. errMsg += "Line: " + args.lineNumber + " \n";
  39. errMsg += "Position: " + args.charPosition + " \n";
  40. }
  41. else if (errorType == "RuntimeError") {
  42. if (args.lineNumber != 0) {
  43. errMsg += "Line: " + args.lineNumber + " \n";
  44. errMsg += "Position: " + args.charPosition + " \n";
  45. }
  46. errMsg += "MethodName: " + args.methodName + " \n";
  47. }
  48. throw new Error(errMsg);
  49. }
  50. </script>
  51. </head>
  52. <body>
  53. <form id="form1" runat="server" style="height:100%">
  54. <div id="silverlightControlHost">
  55. <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
  56. <param name="source" value="ClientBin/VBSL3OOB.xap"/>
  57. <param name="onError" value="onSilverlightError" />
  58. <param name="background" value="white" />
  59. <param name="minRuntimeVersion" value="3.0.40624.0" />
  60. <param name="autoUpgrade" value="true" />
  61. <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
  62. <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
  63. </a>
  64. </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
  65. </form>
  66. </body>
  67. </html>