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.
 
 
 
 
 
 

140 lines
3.9 KiB

<%@ Control Language='C#' Inherits='UDDI.Web.EmailControl' %>
<%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
<%@ Import Namespace='System.Data' %>
<%@ Import Namespace='UDDI' %>
<%@ Import Namespace='UDDI.API.Business' %>
<asp:DataGrid
ID='grid'
CellPadding='4'
CellSpacing='0'
Border='0'
Width='100%'
AutoGenerateColumns='false'
OnEditCommand='DataGrid_Edit'
OnDeleteCommand='DataGrid_Delete'
OnUpdateCommand='DataGrid_Update'
OnCancelCommand='DataGrid_Cancel'
ItemStyle-VerticalAlign='top'
ShowFooter='true'
Runat='Server'>
<EditItemStyle CssClass='tableEditItem' />
<HeaderStyle CssClass='tableHeader' />
<ItemStyle CssClass='tableItem' />
<AlternatingItemStyle CssClass='tableAlternatingItem' />
<FooterStyle CssClass='tableFooter' />
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink
Text='<%# HttpUtility.HtmlEncode( ((Email)Container.DataItem).Value ) %>'
NavigateUrl='<%# "mailto:" + ((Email)Container.DataItem).Value %>'
Runat='Server' /><br>
<uddi:UddiLabel
Text='[[TAG_USE_TYPE]]'
CssClass='lightHeader'
Runat='server' />
<uddi:UddiLabel
Text='<%# Utility.Iff( Utility.StringEmpty( ((Email)Container.DataItem).UseType ), Localization.GetString( "HEADING_NONE" ), ((Email)Container.DataItem).UseType ) %>'
Runat='Server' />
</ItemTemplate>
<EditItemTemplate>
<uddi:UddiLabel
Text='[[TAG_EMAIL]]'
Runat='server' /><br>
<uddi:UddiTextBox
ID='email'
Columns='40'
Width='200px'
OnEnterKeyPressed='OnEnterKeyPressed'
Selected='true'
MaxLength='255'
Text='<%# ((Email)Container.DataItem).Value %>'
Runat='Server' /><br>
<asp:RequiredFieldValidator
ID='emailRequired'
ControlToValidate='email'
ErrorMessage='<%# Localization.GetString( "ERROR_FIELD_REQUIRED" ) %>'
Display='dynamic'
Runat='server'/><br>
<uddi:UddiLabel
Text='[[TAG_USE_TYPE]]'
Runat='server' /><br>
<uddi:UddiTextBox
ID='useType'
Columns='40'
Width='200px'
MaxLength='255'
OnEnterKeyPressed='OnEnterKeyPressed'
Text='<%# ((Email)Container.DataItem).UseType %>'
Runat='Server' />
</EditItemTemplate>
<FooterTemplate>
<uddi:UddiLabel
Text='<%# String.Format( Localization.GetString( "TEXT_RECORD_COUNT" ), emails.Count ) %>'
ForeColor='#000000'
Runat='server' />
</FooterTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderStyle-Width='150px'>
<ItemTemplate>
<nobr>
<uddi:UddiButton
ID='edit'
CommandName='Edit'
Text='[[BUTTON_EDIT]]'
EditModeDisable='true'
Width='70px'
CssClass='button'
Runat='server' />
<uddi:UddiButton
ID='delete'
CommandName='Delete'
Text='[[BUTTON_DELETE]]'
EditModeDisable='true'
Width='70px'
CssClass='button'
Runat='server' />
</nobr>
</ItemTemplate>
<EditItemTemplate>
<nobr>
<uddi:UddiButton
ID='update'
CommandName='Update'
Text='[[BUTTON_UPDATE]]'
Width='70px'
CssClass='button'
Runat='server' />
<uddi:UddiButton
ID='cancel'
CommandName='Cancel'
Text='[[BUTTON_CANCEL]]'
Width='70px'
CssClass='button'
CausesValidation='false'
Runat='server' />
</nobr>
</EditItemTemplate>
<FooterTemplate>
<uddi:UddiButton
ID='add'
Text='[[BUTTON_ADD_EMAIL]]'
Width='146px'
CssClass='button'
OnClick='DataGrid_Add'
EditModeDisable='true'
Runat='Server' />
</FooterTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>