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.

88 lines
2.3 KiB

  1. <%@ Control Language='C#' Inherits='UDDI.Web.BusinessSelector' %>
  2. <%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
  3. <%@ Import Namespace='System.Data' %>
  4. <%@ Import Namespace='UDDI' %>
  5. <%@ Import Namespace='UDDI.API.Business' %>
  6. <uddi:UddiLabel
  7. Text='[[TAG_SHOW_BUSINESSES]]'
  8. CssClass='header'
  9. Runat='server' /><br>
  10. <uddi:UddiTextBox
  11. ID='query'
  12. MaxLength='128'
  13. Width='200px'
  14. Selected='true'
  15. OnEnterKeyPressed='Search_OnClick'
  16. Runat='server' />
  17. <uddi:UddiButton
  18. Text='[[BUTTON_SEARCH]]'
  19. OnClick='Search_OnClick'
  20. Runat='server' /><br>
  21. <asp:RequiredFieldValidator
  22. ID='requiredField'
  23. ControlToValidate='query'
  24. Display='Dynamic'
  25. Runat='server'/>
  26. <br>
  27. <asp:Panel
  28. ID='resultsPanel'
  29. Visible='false'
  30. Runat='server'>
  31. <asp:Label ID='count' Runat='server' /><br>
  32. <br>
  33. <asp:DataGrid
  34. ID='grid'
  35. CellPadding='4'
  36. CellSpacing='0'
  37. Border='0'
  38. Width='100%'
  39. AllowPaging='true'
  40. AutoGenerateColumns='false'
  41. ShowFooter='true'
  42. GridLines='None'
  43. OnItemCommand='Grid_OnItemCommand'
  44. OnPageIndexChanged='Grid_OnPageIndexChange'
  45. Runat='server'>
  46. <EditItemStyle CssClass='tableEditItem' />
  47. <HeaderStyle CssClass='tableHeader' />
  48. <ItemStyle CssClass='tableItem' />
  49. <AlternatingItemStyle CssClass='tableAlternatingItem' />
  50. <FooterStyle CssClass='tableFooter' />
  51. <PagerStyle
  52. Mode='NumericPages'
  53. HorizontalAlign='Left'
  54. CssClass='pager'
  55. PageButtonCount='10' />
  56. <Columns>
  57. <asp:TemplateColumn Visible='false'>
  58. <ItemTemplate>
  59. <uddi:UddiLabel
  60. ID='key'
  61. Text='<%# ((BusinessInfo)Container.DataItem).BusinessKey %>'
  62. Runat='server' />
  63. </ItemTemplate>
  64. </asp:TemplateColumn>
  65. <asp:TemplateColumn>
  66. <HeaderTemplate>
  67. <%# Localization.GetString( "HEADING_BUSINESS" ) %>
  68. </HeaderTemplate>
  69. <ItemTemplate>
  70. <asp:LinkButton
  71. ID='name'
  72. Text='<%# Server.HtmlEncode( ((BusinessInfo)Container.DataItem).Names[ 0 ].Value ) %>'
  73. ToolTip='<%# ((BusinessInfo)Container.DataItem).BusinessKey %>'
  74. CommandName='select'
  75. CausesValidation='false'
  76. Runat='server' />
  77. </ItemTemplate>
  78. </asp:TemplateColumn>
  79. </Columns>
  80. </asp:DataGrid>
  81. </asp:Panel>