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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>Opprett mappe</h1>
			<p>
				Fra denne siden kan du opprette et mappe objekt. Gi mappen et navn som gjør 
				det&nbsp;intuitivt å forstå hva den skal inneholde.&nbsp;Vær oppmerksom på at 
				mappenavn kun kan bestå av bokstavene A-Z og tallene 0-9. De obligatoriske 
				feltene er merket med *.
			</p>
			<table cellSpacing="2" cellPadding="5">
				<tr>
					<td style="WIDTH: 118px">
						<asp:Label id="Label1" runat="server">Navn *</asp:Label>
					</td>
					<td>
						<asp:TextBox id="txtName" runat="server" MaxLength="300" Width="272px"></asp:TextBox>
					</td>
					<td>
						<asp:hyperlink id="HyperLink7" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
					</td>
					<td>
						<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="Du må angi et navn." ControlToValidate="txtName"
							Display="Dynamic"></asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td style="WIDTH: 118px">
						<asp:Label id="Label2" runat="server">Mappenavn *</asp:Label>
					</td>
					<td>
						<asp:TextBox id="txtPath" runat="server" MaxLength="300" Width="272px"></asp:TextBox>
					</td>
					<td>
						<asp:hyperlink id="Hyperlink1" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
					</td>
					<td>
						<asp:RequiredFieldValidator id="Requiredfieldvalidator2" runat="server" ErrorMessage="Du må angi et mappenavn."
							ControlToValidate="txtPath" Display="Dynamic"></asp:RequiredFieldValidator>
						<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ControlToValidate="txtPath" ErrorMessage="Mappenavnet kan bare bestå av bokstanvene A - Z og tallene 0 - 9."
							ValidationExpression="^\w*\d*$"></asp:RegularExpressionValidator>
					</td>
				</tr>
				<tr>
					<td valign="top" style="WIDTH: 118px">
						<asp:Label id="Label3" runat="server">Kommentar</asp:Label>
					</td>
					<td>
						<asp:TextBox id="txtComment" runat="server" TextMode="MultiLine" Height="50px" Width="272px"></asp:TextBox>
					</td>
					<td>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right">
						<asp:Button id="btnCreate" runat="server" Text="Opprett" onclick="btnCreate_Click"></asp:Button>
					</td>
					<td>
					</td>
				</tr>
			</table>
			<asp:Label id="lblMessage" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>