<%@ Page language="c#" Codebehind="AttachMailAddress.aspx.cs" AutoEventWireup="True" Inherits="eDocument.Server.Administrator.MailDistributionList.AttachMailAddress"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>Legg til e-postadresse</h1>
			<p>
				Fra denne siden kan du velge hvilke e-postadresser du ønsker å legge til i distribusjonslisten. Sett et kryss i avkrysningsboksen for den/de e-postadressen(e) du ønsker å legge til og klikk "Utfør" knappen.
			</p>
			<asp:datagrid id="dgMailAddresses" runat="server" AutoGenerateColumns="False" Width="100%" HeaderStyle-CssClass="HeaderStyle"
				ItemStyle-CssClass="ItemStyle" AlternatingItemStyle-CssClass="AlternatingItemStyle" AllowSorting="False">
				<Columns>
					<asp:BoundColumn DataField="MailAddressID" Visible="False"></asp:BoundColumn>
					<asp:TemplateColumn>
						<HeaderTemplate>
							Velg
						</HeaderTemplate>
						<ItemTemplate>
							<asp:CheckBox runat="server" ID="cbSelect" />
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="Name" SortExpression="Name ASC" HeaderText="Navn"></asp:BoundColumn>
					<asp:BoundColumn DataField="Address" SortExpression="Address ASC" HeaderText="E-postadresse"></asp:BoundColumn>
					<asp:BoundColumn DataField="Comment" HeaderText="Kommentar"></asp:BoundColumn>
					<asp:BoundColumn DataField="CreatedOn" SortExpression="CreatedOn ASC" HeaderText="Opprettet"></asp:BoundColumn>
				</Columns>
			</asp:datagrid>
			<P>
				<asp:Label id="lblNoMailAddressesMessage" runat="server">Ingen e-postadresser er tilgjengelige.</asp:Label></P>
			<P>
				<asp:Button id="btnCancel" runat="server" Text="Avbryt" onclick="btnCancel_Click"></asp:Button>&nbsp;
				<asp:Button id="btnAttach" runat="server" Text="Utfør" onclick="btnAttach_Click"></asp:Button><asp:label id="lblMessage" runat="server" ForeColor="Red"></asp:label></P>
</asp:Content>