PageRenderTime 38ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/V4/Quickstarts/MultiTargeting/Silverlight/RealEstateListingViewerHost/RealEstateListingViewerTestPage.html

#
HTML | 82 lines | 65 code | 12 blank | 5 comment | 0 complexity | 7d72dcabe5611b29a08495567cbd4ea8 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" >
  3. <!-- saved from url=(0014)about:internet -->
  4. <head>
  5. <title>Silverlight Project Test Page </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. }
  18. </style>
  19. <script type="text/javascript">
  20. function onSilverlightError(sender, args) {
  21. var appSource = "";
  22. if (sender != null && sender != 0) {
  23. appSource = sender.getHost().Source;
  24. }
  25. var errorType = args.ErrorType;
  26. var iErrorCode = args.ErrorCode;
  27. var errMsg = "Unhandled Error in Silverlight 2 Application " + appSource + "\n" ;
  28. errMsg += "Code: "+ iErrorCode + " \n";
  29. errMsg += "Category: " + errorType + " \n";
  30. errMsg += "Message: " + args.ErrorMessage + " \n";
  31. if (errorType == "ParserError")
  32. {
  33. errMsg += "File: " + args.xamlFile + " \n";
  34. errMsg += "Line: " + args.lineNumber + " \n";
  35. errMsg += "Position: " + args.charPosition + " \n";
  36. }
  37. else if (errorType == "RuntimeError")
  38. {
  39. if (args.lineNumber != 0)
  40. {
  41. errMsg += "Line: " + args.lineNumber + " \n";
  42. errMsg += "Position: " + args.charPosition + " \n";
  43. }
  44. errMsg += "MethodName: " + args.methodName + " \n";
  45. }
  46. throw new Error(errMsg);
  47. }
  48. </script>
  49. </head>
  50. <body>
  51. <!-- Runtime errors from Silverlight will be displayed here.
  52. This will contain debugging information and should be removed or hidden when debugging is completed -->
  53. <div id='errorLocation' style="font-size: small;color: Gray;"></div>
  54. <div id="silverlightControlHost">
  55. <object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%">
  56. <param name="source" value="ClientBin/RealEstateListingViewer.xap"/>
  57. <param name="onerror" value="onSilverlightError" />
  58. <param name="background" value="white" />
  59. <param name="culture" value="es" />
  60. <param name="uiculture" value="es" />
  61. <!-- <param name="culture" value="nl" />
  62. <param name="uiculture" value="nl" />-->
  63. <a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;">
  64. <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
  65. </a>
  66. </object>
  67. <iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
  68. </div>
  69. </body>
  70. </html>