Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
4.9 KiB

  1. <!-- ############################################################################ -->
  2. <!-- ## UDDI Services ## -->
  3. <!-- ## Copyright (c) Microsoft Corporation. All rights reserved. ## -->
  4. <!-- ############################################################################ -->
  5. <%@ Page Language='C#' Inherits='UDDI.Web.UddiPage' %>
  6. <%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
  7. <%@ Register Tagprefix='uddi' Tagname='Header' Src='../controls/header.ascx' %>
  8. <%@ Register Tagprefix='uddi' Tagname='Footer' Src='../controls/footer.ascx' %>
  9. <%@ Register Tagprefix='uddi' Tagname='BreadCrumb' Src='../controls/breadcrumb.ascx' %>
  10. <%@ Register Tagprefix='uddi' Tagname='Descriptions' Src='../controls/descriptions.ascx' %>
  11. <%@ Register TagPrefix='uddi' Tagname='InstanceInfos' Src='../controls/instanceinfos.ascx' %>
  12. <%@ Import Namespace='UDDI.API' %>
  13. <%@ Import Namespace='UDDI.API.Business' %>
  14. <%@ Import Namespace='UDDI.API.Binding' %>
  15. <%@ Import Namespace='UDDI' %>
  16. <%@ Import Namespace='System.Data' %>
  17. <script language='C#' runat='server'>
  18. protected bool frames = false;
  19. protected void Page_Init( object sender, EventArgs e )
  20. {
  21. frames = ( "true" == Request[ "frames" ] );
  22. }
  23. protected void Page_Load( object sender, EventArgs e )
  24. {
  25. string key = Request[ "key" ];
  26. if( Utility.StringEmpty( key ) )
  27. Response.Redirect( "default.aspx" );
  28. BindingTemplate binding = new BindingTemplate();
  29. binding.BindingKey = key;
  30. binding.Get();
  31. bindingKey.Text = binding.BindingKey;
  32. if( null!= binding.AccessPoint )
  33. {
  34. AccessPoint.Text = HttpUtility.HtmlEncode( binding.AccessPoint.Value );
  35. }
  36. else
  37. {
  38. AccessPoint.Text = Localization.GetString( "HEADING_BINDING" );
  39. }
  40. UrlType.Text = binding.AccessPoint.URLType.ToString();
  41. descriptions.Initialize( binding.Descriptions );
  42. instanceInfos.Initialize( binding.TModelInstanceInfos, binding, false );
  43. breadcrumb.Initialize( BreadCrumbType.Details, EntityType.BindingTemplate, key );
  44. }
  45. </script>
  46. <uddi:StyleSheetControl
  47. Runat='server'
  48. Default='../stylesheets/uddi.css'
  49. Downlevel='../stylesheets/uddidl.css'
  50. />
  51. <uddi:PageStyleControl
  52. Runat='server'
  53. OnClientContextMenu='Document_OnContextMenu()'
  54. Title="TITLE"
  55. AltTitle="TITLE_ALT"
  56. />
  57. <uddi:ClientScriptRegister
  58. Runat='server'
  59. Source='../client.js'
  60. Language='javascript'
  61. />
  62. <uddi:SecurityControl
  63. UserRequired='true'
  64. Runat='server'
  65. />
  66. <form runat='server'>
  67. <table width='100%' border='0' height='100%' cellpadding='0' cellspacing='0'>
  68. <asp:PlaceHolder
  69. Id='HeaderBag'
  70. Runat='server'
  71. >
  72. <tr height='95'>
  73. <td>
  74. <!-- Header Control Here -->
  75. <uddi:Header
  76. Runat='server'
  77. />
  78. </td>
  79. </tr>
  80. </asp:PlaceHolder>
  81. <tr height='100%' valign='top'>
  82. <td>
  83. <uddi:BreadCrumb
  84. Id='breadcrumb'
  85. Runat='server'
  86. />
  87. <table cellpadding='10' cellspacing='0' border='0' width='100%'>
  88. <tr>
  89. <td>
  90. <uddi:UddiLabel Text='[[HELP_BLOCK_BINDING]]' CssClass='helpBlock' Runat='server' /><br>
  91. <br>
  92. <uddi:TabControl ID='tabs' Runat='server'>
  93. <uddi:TabPage Name='TAB_DETAILS' Runat='server'>
  94. <uddi:ContextualHelpControl
  95. Runat='Server'
  96. Text='[[HELP_BLOCK_BINDING_DETAILS]]'
  97. HelpFile='search.context.bindingdetails'
  98. CssClass='tabHelpBlock'
  99. BorderWidth='0'
  100. />
  101. <br>
  102. <uddi:UddiLabel Text='[[TAG_ACCESS_POINT]]' CssClass='header' Runat='server' /><br>
  103. <asp:Label id='AccessPoint' Runat='server'/><br>
  104. <br>
  105. <uddi:UddiLabel Text='[[TAG_URL_TYPE]]' CssClass='header' Runat='server' /><br>
  106. <asp:Label id='UrlType' Runat='server'/><br>
  107. <br>
  108. <uddi:UddiLabel Text='[[TAG_BINDING_KEY]]' CssClass='header' Runat='server' /><br>
  109. <asp:Label id='bindingKey' Runat='server' /><br>
  110. <br>
  111. <uddi:Descriptions ID='descriptions' Runat='server' />
  112. </uddi:TabPage>
  113. <uddi:TabPage Name='TAB_INSTANCE_INFOS' Runat='server'>
  114. <uddi:ContextualHelpControl
  115. Runat='Server'
  116. Text='[[HELP_BLOCK_BINDING_INSTANCE_INFOS]]'
  117. HelpFile='search.context.bindinginstanceinfos'
  118. CssClass='tabHelpBlock'
  119. BorderWidth='0'
  120. />
  121. <br>
  122. <uddi:InstanceInfos Id='instanceInfos' Runat='server' />
  123. </uddi:TabPage>
  124. </uddi:TabControl>
  125. </td>
  126. </tr>
  127. </table>
  128. </td>
  129. </tr>
  130. <asp:PlaceHolder
  131. Id='FooterBag'
  132. Runat='server'
  133. >
  134. <tr height='95'>
  135. <td>
  136. <!-- Footer Control Here -->
  137. <uddi:Footer
  138. Runat='server'
  139. />
  140. </td>
  141. </tr>
  142. </asp:PlaceHolder>
  143. </table>
  144. </form>