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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>Rediger les mer link</h1>
			<p>Fra denne siden kan du redigere en les mer link. De obligatoriske feltene er 
				merket med *. Dersom du angir link-type som HREF genereres en vanlig hyperlink. 
				Du må da spesifisere hvilken target frame linken skal åpnes i. Verdien er satt 
				til "_blank" for å indikere at linken skal åpnes i et nytt vindu. Dersom du 
				angir link-type som JavaScript pop-up kan du angi verdier for egenskapene som 
				begynner med JavaScript. Disse verdiene styrer egenskaper ved vinduet som 
				linken åpnes i.
			</p>
			<table cellSpacing="2" cellPadding="5">
				<tr>
					<td><asp:label id="Label1" runat="server">Ledetekst *</asp:label></td>
					<td><asp:textbox id="txtCaption" runat="server" Width="500px" MaxLength="300"></asp:textbox></td>
					<td></td>
					<td><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" Display="Dynamic" ControlToValidate="txtCaption"
							ErrorMessage="Du må angi en ledetekst."></asp:requiredfieldvalidator></td>
				</tr>
				<tr>
					<td><asp:label id="Label4" runat="server">URL *</asp:label></td>
					<td><asp:textbox id="txtUrl" runat="server" Width="500px" MaxLength="300"></asp:textbox></td>
					<td></td>
					<td><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" Display="Dynamic" ControlToValidate="txtUrl"
							ErrorMessage="Du må angi en URL."></asp:requiredfieldvalidator></td>
				</tr>
				<tr>
					<td><asp:label id="Label6" runat="server">Link-type</asp:label></td>
					<td><asp:dropdownlist id="ddlLinkType" runat="server" Width="500px">
							<asp:ListItem Value="1">HREF</asp:ListItem>
							<asp:ListItem Value="2">JavaScript pop-up</asp:ListItem>
						</asp:dropdownlist></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label2" runat="server">Target frame</asp:label></td>
					<td><asp:textbox id="txtTarget" runat="server" Width="500px" MaxLength="300">_blank</asp:textbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label3" runat="server" Visible="True">JavaScriptWindowName</asp:label></td>
					<td><asp:textbox id="txtJavaScriptWindowName" runat="server" Width="500px" MaxLength="300" Visible="True">Vindu</asp:textbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label5" runat="server" Visible="True">JavaScriptWindowWidth</asp:label></td>
					<td><asp:textbox id="txtJavaScriptWindowWidth" runat="server" Width="500px" MaxLength="300" Visible="True">400</asp:textbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label7" runat="server" Visible="True">JavaScriptWindowHeight</asp:label></td>
					<td><asp:textbox id="txtJavaScriptWindowHeight" runat="server" Width="500px" MaxLength="300" Visible="True">400</asp:textbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label8" runat="server" Visible="True">JavaScriptWindowPositionFromLeft</asp:label></td>
					<td><asp:textbox id="txtJavaScriptWindowPositionFromLeft" runat="server" Width="500px" MaxLength="300"
							Visible="True">0</asp:textbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label9" runat="server" Visible="True">JavaScriptWindowPositionFromTop</asp:label></td>
					<td><asp:textbox id="txtJavaScriptWindowPositionFromTop" runat="server" Width="500px" MaxLength="300"
							Visible="True">0</asp:textbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label10" runat="server" Visible="True">JavaScriptResizableWindow</asp:label></td>
					<td><asp:checkbox id="cbJavaScriptResizableWindow" runat="server"></asp:checkbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label11" runat="server" Visible="True">JavaScriptShowScrollBars</asp:label></td>
					<td><asp:checkbox id="cbJavaScriptShowScrollBars" runat="server"></asp:checkbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label12" runat="server" Visible="True">JavaScriptShowFileMenuBar</asp:label></td>
					<td><asp:checkbox id="cbJavaScriptShowFileMenuBar" runat="server"></asp:checkbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label13" runat="server" Visible="True">JavaScriptShowToolBar</asp:label></td>
					<td><asp:checkbox id="cbJavaScriptShowToolBar" runat="server"></asp:checkbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label14" runat="server" Visible="True">JavaScriptShowAddressBar</asp:label></td>
					<td><asp:checkbox id="cbJavaScriptShowAddressBar" runat="server"></asp:checkbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label15" runat="server" Visible="True">JavaScriptShowLinkBar</asp:label></td>
					<td><asp:checkbox id="cbJavaScriptShowLinkBar" runat="server"></asp:checkbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td><asp:label id="Label16" runat="server" Visible="True">JavaScriptShowStatusBar</asp:label></td>
					<td><asp:checkbox id="cbJavaScriptShowStatusBar" runat="server"></asp:checkbox></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td align="right" colSpan="2"><asp:button id="btnUpdate" runat="server" Text="Oppdater" onclick="btnUpdate_Click"></asp:button></td>
					<td></td>
					<td></td>
				</tr>
			</table>
			<asp:label id="lblMessage" runat="server" ForeColor="Red"></asp:label>
</asp:Content>